Reset application state/data on device between test runs in XCode UITests

Originator:spectrumanalysis
Number:rdar://23046444 Date Originated:09-Oct-2015
Status:Duplicate/18398198 Resolved:
Product:Developer Tools Product Version:Xcode Version 7.0 (7A220)
Classification: Reproducible:Yes
 
Devashish Chandra09-Oct-2015 04:42 PM

Summary:
I have tests (for example testing different login types), which require that the user not be logged into the app before the test starts.

This would be much easier to do if there was a way to reset application data before launching the app, currently XCode does not provide any way to do so.

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Xcode Version 7.0 (7A220)
OSX 10.11 (15A284)

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!