I was wondering, if I run a test against a physical iOS or Android device with Appium, how long is Appium able to run the test before it terminates itself (due to timeout or something) or I end the test specifically inside the test.
Let’s say I had a test scenario where I want to launch and run an app for a long time (e.g. say 15 min, 1 hr, 24 hrs). The test may launch app, perhaps sleep for the desired long interval then resume to validate some stuff or end the test when resume from sleep.
Asking this as most mobile app tests like web app tests are not meant to run long. But I have some scenarios where I do want to run long time, and would like to know what Appium’s time limits might be if any.
Although I will try it out eventually when I get a chance, but wanted to know if anyone knows the answer to this or has some experiences around it.
hi.
our android client testSuite running about 45min.
iOS client was running about 50min for 2 emulators (normally iPhone + iPad) BUT! with latest problem in instrument delay now it is taking for 6h (we pray for Appium 1.5 to fix problem)
regarding the LONG one time tests e.g. stress test for app or Google Analytic tests (these tests not in main suite) maximum we running about 45min.
With long waiting (Google Analytics normally takes 5-7min to detect changes) we use logic to re-establish connection to device/emulator if it dies (by default it is 120sec to die).
thanks @Aleksei it would be a nice feature to make automation more stable. I have a scenario where when I click Force Sync button then it would test app around 3 hours to erase and download data from scratch.