Hey guys I have been able to launch iOS with my bundleId in the past, but for some reason now I am getting an error saying that the bundleId is unknown.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Android Parallel Execution" parallel="tests" thread-count="2" verbose="2">
<test name="iOS">
<parameter name="platformVersion" value="12.4"/>
<parameter name="UDID" value="ABCDEF-1234-1234-ABCD-ABCDEFG"/>
<parameter name="deviceName" value="iPhone X"/>
<parameter name="port" value="4723"/>
<parameter name="IP" value="http://0.0.0.0:"/>
<classes>
<class name="PPMA.steps.TestRunner"/>
<class name="PPMA.test.Hooks"/>
</classes>
</test>
</suite>
@Parameters({"platformVersion", "UDID", "deviceName", "port", "IP"})
@BeforeTest(alwaysRun = true, groups = "ios")
public void startAppiumServeriOS(String platformVersion, String UDID, String deviceName, String port, String IP) throws MalformedURLException {
service = new AppiumServiceBuilder()
.usingPort(Integer.valueOf(port))
.build();
service.start();
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability(MobileCapabilityType.PLATFORM_VERSION, platformVersion);
caps.setCapability("deviceName", deviceName);
caps.setCapability(MobileCapabilityType.UDID, UDID);
caps.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
caps.setCapability(MobileCapabilityType.APPLICATION_NAME, "MyApp");
caps.setCapability(MobileCapabilityType.APPIUM_VERSION, "1.14.0");
caps.setCapability("autoAcceptAlerts", true);
caps.setCapability("unicodeKeyboard", true);
caps.setCapability("resetKeyboard", true);
caps.setCapability("bundleId", "com.test.test");
caps.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
driver = new IOSDriver(new URL( IP + port + "/wd/hub"), caps);
System.out.println("\n Appium server: " + service.getUrl());
}
Does anyone know why this is happening? Do I need to update something, or downgrade something?
io.appium:java-client v7.0.0
org.testng.testng v7.0.0-beta-3
selenium v3.141.59