Xcode 7.2: UI Testing should allow app to be completely reset to defaults

Originator:sebskuse
Number:rdar://24455566 Date Originated:02-Feb-2016 08:47 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.2 (7C68)
Classification:Enhancement Reproducible:Always
 
Summary:
Our application prompts the user for their location when the app starts up. Based on their action, a couple of different routes are taken. With the current set of UI Tooling I do not see a way to be able to reset the app.

Steps to Reproduce:
Have an app under UI testing that prompts for the user’s location, then performs different actions based on whether the location was successfully retrieved or not. Have two UI tests, the first to test when the user accepts the prompts, the second if the user does not. The first test can pass, as the app prompts for location services access, the second does not.

Expected Results:

UI testing should provide the ability to either:

1. Uninstall the app, so as to wipe the application OS level settings
2. Reset the app back to “fresh install” state

Actual Results:
There is no way to reset the app.

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!