Table of Contents
iOS
For iOS apps, you can pass values to the app under test via "App launch arguments" or "App env variables".
How to Set
Open the test run settings dialog and configure them from the "Advanced Settings" tab.
How to Reference on the App Side
These values can be referenced via ProcessInfo.
"App launch arguments" can be accessed using ProcessInfo.processInfo.arguments.
"App env variables" can be accessed using ProcessInfo.processInfo.environment.
Android
For Android apps, you can pass values to the app under test via "App launch arguments".
How to Set
As with iOS, you can configure these values from the "Advanced Settings" tab.
How to Reference on the App Side
These values are passed as Intent extras, so they can be accessed from the app using getExtras.