How To Install Perfecto Mobile Plugin In Eclipse
Sample Java Projection
This sample projection is designed to get you up and running within few unproblematic steps.
Begin with installing the dependencies below, and go on with the Getting Started procedure below.
Dependencies
At that place are several prerequisite dependencies you should install on your machine prior to starting to work with this project:
-
Java 8
-
An IDE to write your tests on - Eclipse or IntelliJ
-
Maven
-
Android studio
-
Local Appium Server running at http://127.0.0.1 , port: 4723
Eclipse users should as well install:
-
Maven Plugin
-
TestNG Plugin
IntelliJ IDEA users should also install:
- Maven Plugin for IDEA
TestNG Plugin is built-in in the IntelliJ Thought, from version 7 onwards.
Optional Installations
- For source command management, you can install git.
- To be able to interact with a real device from Perfecto deject directly from your IDE, and utilize Perfecto Reporting, install Perfecto CQ Lab Plugin for your IDE.
Downloading the Sample Project
-
Clone the repository.
-
After downloading and unzipping the project to your figurer, open information technology from your IDE by choosing the binder containing the pom.xml
Getting Started
- Local Appium prerequisite: Local Appium Server should exist running at http://127.0.0.1 , port: 4723
Running sample equally is
-
Open PerfectoAppium.java and PerfectoSelenium.java
-
Search for the beneath line and supervene upon
<<deject proper name>>
with your perfecto cloud name (eastward.g. testcloud is the cloudName of free trial users, Kindly reach out to Perfecto support in case of queries) or pass it equally maven backdrop:-DcloudName=<<cloud name>>
String cloudName =
"<<cloud name>>"
; -
Search for the below line and supercede
String securityToken =<<SECURITY TOKEN>>
with your perfecto security token or pass it as maven properties:-DsecurityToken=<<SECURITY TOKEN>>
"<<SECURITY TOKEN>>"
;
Note: Refer to official documentation on how to execute from eclipse / IntelliJ.
-
Run pom.xml with the below maven goals & properties when:
a. If credentials are hardcoded:b. If credentials are passed as parameters:
clean install -DcloudName=${cloudName} -DsecurityToken=${securityToken} -DtestngXmlFile=testng_perfecto.xml
-
Maven will automatically kick start the parallel execution of dissimilar examples within perfecto packet in parallel if
-DtestngXmlFile=testng.xml
is passed as maven properties, if you lot want to run only perfecto scripts just pass this:-DtestngXmlFile=testng_perfecto.xml
as maven properties. (this is the default behaviour) -
CI dashboard integration can be performed past supplying the below backdrop to top-level Maven Targets:
make clean install -DcloudName=${cloudName} -DtestngXmlFile=testng_perfecto.xml -DsecurityToken=${securityToken} -Dreportium-job-proper noun=${JOB_NAME} -Dreportium-task-number=${BUILD_NUMBER} -Dreportium-job-branch=${GIT_BRANCH} -Dreportium-tags=${myTag}
Source: https://github.com/PerfectoMobileSA/PerfectoSampleProject
Posted by: sholessylawass.blogspot.com
0 Response to "How To Install Perfecto Mobile Plugin In Eclipse"
Post a Comment