Assertion Failure: UI Testing Failure - App state is still not terminated

Originator:vinayakuchila
Number:rdar://23983378 Date Originated:24-Dec-2015 11:23 AM
Status:Open Resolved:No
Product:Developer Tools Product Version:Version 7.2 (7C68)
Classification:Serious Bug Reproducible:Always
 
Summary:
While running UI tests on an iOS simulator with multiple test cases, it's often the case that after a few run of tests, the XCUIApplication() instance is in a stalled state.

The app instance is not terminated, therefore, the next test case setUp() is not able to continue, and it produced the assertion failure:

Assertion Failure: UI Testing Failure - App state is still not terminated

Steps to Reproduce:
1. Try the UITest for the project on github: https://github.com/joemasilotti/UI-Testing-Cheat-Sheet
2. Run the UITests


Expected Results:
All tests should complete without app state error

Actual Results:
The tests failed because of app state error


Version:
Xcode 7.2 / iOS 9.2

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!