I\'ve tried setting attributes in the XCUIApplication instance, in my UI Tests setUp()
XCUIApplication
setUp()
let app = XCUIApplication() app.launchEnviro
If you need pass the environment variables from your schema to XCUITes, modify the XCTestCase -> app.launchEnvironment object, on each test class of this way:
Swift 3
override func setUp(){ app.launchEnvironment = ProcessInfo.processInfo.environment }