lundi 25 juillet 2016

creating two appium drivers sometimes fails on the second

I have a test that checks the integration between two app.

I create an android-appium-drive. I install and run app A

I then

create an android-appium-driver. I install and run app B

Very often the second installation throws an exception:

15:57:57     org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
15:57:57     Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44'
15:57:57     System info: host: 'waze-jenkins.fra.corp.google.com', ip: '172.24.225.8', os.name: 'Linux', os.arch: 'amd64', os.version: '3.2.5-gg1336-ganetixenu', java.version: '1.8.0_65'
15:57:57     Driver info: driver.version: MyAndroidDriver
15:57:57        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:589)
15:57:57        at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
15:57:57        at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
15:57:57        at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
15:57:57        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)
15:57:57        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
15:57:57        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:141)
15:57:57        at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:37)
15:57:57        at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:160)
15:57:57        at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:168)
15:57:57        at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:69)

Is there any troubleshoot for installing two android drivers?

I put a 5 seconds sleep in between the two installations,

but it didn't help

Aucun commentaire:

Enregistrer un commentaire