1

My appium tests are passing before I checked it in and after I checked in the Jenkins code. However, after a few runs the appium tests starts failing and can't install the app on the ios devices. A reboot would fix it and sometimes if not I have to reboot the computer as well as the ios device. Sometimes the webdriveragent gets uninstalled by itself and I have to manually install it again. I didn't uninstall it though. Has anyone encountered this in Appium IOS automation? How did you solve this or worked around this problem? Thanks.

0

Added this in beforeclass Runtime.getRuntime().exec("/usr/local/bin/idevicediagnostics restart -u "+udid).waitFor(); Thread.sleep(60000);

capabilities.setCapability("newCommandTimeout", 2000); capabilities.setCapability("wdaConnectionTimeout", 500000); capabilities.setCapability("wdaLaunchTimeout", 120000); capabilities.setCapability("wdaStartupRetries", 4); capabilities.setCapability("wdaStartupRetryInterval", 20000);

Setting this seemed to help

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.