Timeout wait for device

Hi Team,

Appium Studio : 10.8.41 on Windows
Environement : Eclipse IDE
Platform : iOS
Devices : Real Devices
Framework : Testng

  1. I’ve connected two iOS real devices and defined two different tests in my testng.xml
  2. Each of my test will start from Initialize driver and ends with closeApp() & removeApp()
  3. When i execute the above test suite, first test went as expected. But the second test failed with following exception. It keep on waiting for device but couldn’t find it. But the real device is connected to my PC

Could you please help me on how to overcome this issue

Stacktrace:
[Fri Jun 23 09:52:05 IST 2017] [driver] Starting test: ‘Untitled’
[Fri Jun 23 09:52:05 IST 2017] [driver] {app=xxxxxxxxxx\xxxxxx.ipa, dontGoHomeOnQuit=false, noReset=false, dontStopAppOnReset=false, instrumentApp=false, bundleId=xxxxxxxxxxxxxxxxxxxx, reservationDuration=240, fullReset=false, waitForDeviceTimeout=50000, useRemoteGrid=false, newCommandTimeout=15, [enableclientlog, enableclientlogger]=false, autoWebview=false, udid=02514342d1b0ad9e8dcb4e94ba578ca6c32190a7, platformName=iOS}
[Fri Jun 23 09:52:05 IST 2017] [driver] context: NATIVE_APP
[Fri Jun 23 09:52:05 IST 2017] [driver] application under test:
[Fri Jun 23 09:52:05 IST 2017] [driver] app path: xxxxxxxxxx\xxxxxx.ipa
[Fri Jun 23 09:52:05 IST 2017] [driver] full reset: false
[Fri Jun 23 09:52:05 IST 2017] [driver] instrument: false
[Fri Jun 23 09:52:05 IST 2017] [driver] no reset: false
[Fri Jun 23 09:52:05 IST 2017] [driver] bundleId: xxxxxxxxxxxxxxxxxxxx
[Fri Jun 23 09:52:05 IST 2017] [driver] launch timeout ms: null
[Fri Jun 23 09:52:05 IST 2017] [driver] browser: false
[Fri Jun 23 09:52:05 IST 2017] [driver] connecting localhost:8889
[Fri Jun 23 09:52:05 IST 2017] [driver] Call of getSessionID returned: 737d
[Fri Jun 23 09:52:05 IST 2017] [driver] command default timeout [ms]: 15000
[Fri Jun 23 09:52:05 IST 2017] [driver] wait for device ‘@serialnumber=‘02514342d1b0ad9e8dcb4e94ba578ca6c32190a7’’ timeout-ms=‘50000’
[Fri Jun 23 09:52:57 IST 2017] [1ae9] [driver] [start] getScreenshotAs(OutputType.FILE)
[Fri Jun 23 09:52:57 IST 2017] [1ae9] [driver] [end] getScreenshotAs
[Fri Jun 23 09:52:57 IST 2017] [1ae9] [driver] [start] getScreenshotAs(OutputType.FILE)
[Fri Jun 23 09:52:58 IST 2017] [1ae9] [driver] [end] getScreenshotAs
FAILED CONFIGURATION: @BeforeClass setUp(org.testng.TestRunner@45abb58f)
com.experitest.client.InternalException: Timeout wait for device
at com.experitest.client.JavaClientInternals.waitForDevice(JavaClientInternals.java:395)
at com.experitest.client.Client.waitForDevice(Client.java:234)
at com.experitest.appium.STClientFacade.(STClientFacade.java:185)
at com.experitest.appium.STIOSClientFacade.(STIOSClientFacade.java:15)
at com.experitest.appium.SeeTestIOSDriver.(SeeTestIOSDriver.java:82)
at com.symantec.nf.PreTestOperations.launchAppDriver(PreTestOperations.java:175)
at com.symantec.nf.PreTestOperations.launchNF(PreTestOperations.java:134)

Thanks,
Saravanan

1 Like

try to update to latest version.

Not sure with AppiumStudio but with Seetest Automation if the device isn’t previously released the next running test will fail. Try to put driver.Quit() at the end of your test

1 Like

Exactly! i had to release the previous driver before starting new test

Yes, driver.Quit() served the purpose. Now my script working fine :slight_smile:

1 Like