Exiting tested application locks UI interactions

Originator:stephen.tramer
Number:rdar://24230954 Date Originated:2016/1/18
Status:Open Resolved:
Product:Xcode Product Version:Xcode 7.2 (7C68)
Classification:Other bug Reproducible:Always
 
Stephen Tramer18-Jan-2016 01:07 PM


Summary:
Exiting an application via -[UIApplication openURL:] or other means breaks the ability of the UI tests to drive the UI of an application.

Steps to Reproduce:
See attached sample.

1. Create UI element linked to an action which calls -[UIApplocation openURL:] in a valid manner.
2. Record a test in which you:
a. Click the element
b. Click the 'Return to application' button in the status bar
c. Click the element again (or a separate element)


Expected Results:
UI driver functions correctly even after external app is loaded; the test completes correctly by performing step 2b. and recognizing the element in step 2c. existing.

Actual Results:
Test continues to run, but cannot interact with the simulator. Step 2b is never run and test fails at step 2c.

Version:
Version 7.2 (7C68)

Notes:
Attached minimal reproducible test case.

Note that you may still *record* these interactions, as demonstrated in the attached sample, even though they do not function correctly.

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!