mtet88 February 2016

UITest the navigation to "out of app" environment

I'm currently making some UITests to my app and I would like to test the behaviour of a "iOS Settings" button I have which (off course) sends the user to the setting,

Is there a way to UITest this?

Answers


Joe Masilotti February 2016

UI Testing cannot interact with anything outside of your application. In your scenario, the framework can no longer do anything once your app opens Settings.

To verify this, try printing out the app's hierarchy once Settings opens. You will notice that nothing in Settings nor the navigation bar will show up - you will only see your app's information.

print(XCUIApplication().debugDescription)

Post Status

Asked in February 2016
Viewed 3,642 times
Voted 9
Answered 1 times

Search




Leave an answer