Hi,
I used following scripts to migrate XCUITest
npm install -g [email protected]
cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
brew install carthage
./Scripts/bootstrap.sh -d
and set following capabilities
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“deviceName”, “iPhone 6”);
capabilities.setCapability(“platformName”, “iOS”);
capabilities.setCapability(“platformVersion”, “10.2”);
capabilities.setCapability(“automationName”,“XCUITest”);
capabilities.setCapability(“app”, app.getAbsolutePath());
capabilities.setCapability(“noReset”, “true”);
driver = new IOSDriver(new URL(“http://localhost:4723/wd/hub”), capabilities);
and started Appium
started tests from Maven
mvn clean test -DAppPath=…app -DTest=t1_LoginTests
Launched the webdriver first and then app and got below java error.
test1LoginPWD(tests.t1_LoginTests) Time elapsed: 0.006 sec <<< ERROR!
java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
Please help me out what will be the issue ?