Target :iOS and XCUITest
Native application
On some devices I get loads and loads of “alerts”, not caused directly by the app under test, but they often are in the background , for example a device that we intentionally have not upgraded from ioS 9 to 10, I get an upgrade alert. I also get alerts telling me to login to the apple appstore and various mailboxes too. I could reduce these alerts, but the test engine gets blocked by them even if I eliminate 90% of them, it’s still not really useful. Especially if when a test fails/blows up, that an alert is likely. (apple store login get caused by the app talking to the store, but normally the test handles that. its when a test crashes that its a problem.)
“The test runner failed to initialize for UI testing. (Underlying error: Failed to background test runner within 30.0s.)”
This feels like a bug in the apple drivers, or a capability they have which is undocumented. I have been scanning a few threads that talk about an “autoacceptallerts” capability, but no docs.