As part of creating an instance of the RemoteWebDriver, you need to supply the URL of your Perfecto cloud. Search for the following line in
PerfectoAppium.java and replace
<<cloud name>> with the name of your Perfecto cloud (for example:
String cloudName = "<<cloud name>>";
Alternatively, you can pass the TestNG file name as a Maven property to execute specific TestNG files, as follows:
-DtestngXmlFile=<<testng file name>>.xml
testng_perfecto.xml is configured by default. You can override it by passing the preferred TestNG name as a Maven property, such as
-DtestingXmlFile=testng.xml, to execute all 4 tests in parallel.
The general structure of the URL string is as follows:
"https://" + Utils.fetchCloudName(cloudName) + ".perfectomobile.com/nexperience/perfectomobile/wd/hub"
Here is the respective line from our sample script:
WebDriver driver = new RemoteWebDriver(new URL("https://" + Utils.fetchCloudName(cloudName) + ".perfectomobile.com/nexperience/perfectomobile/wd/hub"), capabilities);