SeeTest allows you to pass Environment variables and command line arguments to an iOS application during the launch process.
Users are required to pass the environment variables or command line arguments as MAP of key-value set which is passed to the application
|relaunch||boolean||Whether or not to kill the application in case it is running||Android & iOS|
|instrument||boolean||Launch the application in an instrumented mode||Android & iOS|
|launch_args||List<String>||Ordered array of command line args||iOS|
|launch_env||Map<String,String>||Set of key = value pairs that will be passed as Environment variables to the application||iOS|
|<adb-option-key>||<adb-option-value>||key-value pairs of adb extra options||Android|
The examples below show a couple of use cases for this feature for users who are using JAVA \ Ruby Clients, this command is supported for all SeeTestAutomation clients
- In iOS:
When passing to the application ENV vars or CMD line ARGS Make sure that you also pass the key "relaunch" with value `true` so that the application will be able to parse these arguments
- In Android:
-D: Enable debugging.
-W: Wait for launch to complete.
--start-profiler file: Start profiler and send results to
-P file: Like
--start-profiler, but profiling stops when the app goes idle.
-R count: Repeat the activity launch
counttimes. Prior to each repeat, the top activity will be finished.
-S: Force stop the target app before starting the activity.
--opengl-trace: Enable tracing of OpenGL functions.
--user user_id | current: Specify which user to run as; if not specified, then run as the current user.
- --es: extra custom options