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


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)

Need Your Help

Are there any tools to populate class properties with random data?

c# class random

What I'd like to do is create a class with some attributes on different properties, pass that class to another that will set the properties with appropriate random data... here in pseudo code:

Core Data: Error if deleting unsaved object

objective-c cocoa core-data nsmanagedobject nsmanagedobjectcontext

I have some trouble with a core data project. I have a NSArrayController with NSManagedObjects in it, and + / - buttons. If i delete a object in the row after the file has been saved it works perfe...