-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittently seeing DeviceAgent is not running error while executing tests #665
Comments
Please update to most recent Calabash and run-loop.
This probably means that DeviceAgent has crashed. Please look at your devices for crash reports or your simulator logs. If possible, please provide an app with steps to reproduce. |
@jmoody We tried with latest run-loop, issue is still there. However, i don't have any specific steps to reproduce, it just happens randomly at places where we are querying/touching using device agent methods. Attaching logs for one such failed scenario. Application under test, was still running in foreground. But, script threw the error Page on which we are querying the elements is a safari web view. Session-Unnamed-Test-Run-2018-01-25_095800-FLtWOY.log Also, i didn't see any crash logs for either device agent or the app we are testing, could you please point out where i should be looking for those logs. I looked at ./Library/Logs/CrashReporter/MobileDevice |
Crash reports are found in Xcode > Window > Devices and Simulator > right click on the device to view logs => those are the crash reports. |
I am probably going to need your app + steps to reproduce to debug this issue. |
@jmoody I did some further debugging for the issue and ran some tests.
After commenting this i didn't see the issue, ran on a bunch of devices & multiple number of times. I think the device agent was running fine, but for some reason the code above was returning false which is causing the issue. |
Some times while executing tests, when we are querying using
device_agent.query
ordevice_agent.touch
ordevice_agent.keyboard_visible?
, it throws error The DeviceAgent is not running. These are the elements safari web view hence, unable to query or touch using the core methods.Our understanding is that when a scenario is running, ideally the device_agent should always be running.
Xcode - 9.2
iOS 11
run_loop - 2.6.2, 2.6.3
calabash - 0.21.1
The text was updated successfully, but these errors were encountered: