Status | ||||
---|---|---|---|---|
|
...
Field in configuration file | Whether the field is necessary depending on the type of job (apk, custom or url) | Description | Default or example value | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
| The platform on which the tests will run. |
| ||||||||
|
| The path where you want the Test Runner to save the results. |
| ||||||||
|
| The path where components used by the Test Runner are installed. |
| ||||||||
| Informations on your GREENSPECTOR profile. | ||||||||||
|
| Your GREENSPECTOR Server URL. | |||||||||
|
| Your private token registered on GREENSPECTOR Server. |
| ||||||||
| Configure these fields if you are using a proxy server. | ||||||||||
|
| The protocol used by the proxy. |
| ||||||||
|
| The proxy's URL. | |||||||||
|
| The port used by the proxy server. | |||||||||
|
| The username you are using to connect to the proxy server. | |||||||||
|
| The password associated with this username. | |||||||||
| Contains the settings of the targeted platform | ||||||||||
|
| The way you are connected to the device. |
| ||||||||
|
| The mobile device id, can be retrieved with | |||||||||
|
| The mobile IP adress on your Wi-Fi network, can be retrieved with | |||||||||
|
| The mobile remote port for adb on your Wi-Fi network. Use this if you previously set connection value to |
| ||||||||
| The paths to required Android SDK's tools. | ||||||||||
|
| Path to ADB (Android Debug Bridge). |
| ||||||||
|
| Path to AAPT (Android Asset Packaging Tool). |
| ||||||||
| For module | ||||||||||
|
| The path to the phantomas executable if not already in your path. |
| ||||||||
| Contains information about your physical measurement tool | ||||||||||
|
| USB port which the physical probe is connected to |
| ||||||||
setupCommands |
| You can provide any useful shell commands that will run on the device before each iteration of testing. Use this parameter if your device needs to be prepared before each iteration and you do not want to prepare it with your GDSL ou UI Automator test. | setupCommands: - settings put global verifier_verify_adb_installs 0 - sh /sdcard/myscript.sh |
job.yml
Field in configuration file | Whether the field is necessary depending on the type of job (apk, custom or url) | Description | Default or example value | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mode |
| The type of job you want to lauch, as explained above. |
| ||||||||||||||||||||
greenspector | This block contains details about the GREENSPECTOR application in which you want to save your measures. | ||||||||||||||||||||||
application | |||||||||||||||||||||||
name |
| The name of the application . | |||||||||||||||||||||
version |
| The version of the application. | |||||||||||||||||||||
job | The job definition. | ||||||||||||||||||||||
url |
| If you previously set Otherwise it is an URL pointing to your Android APK. You can precise a local path to your apk, a public URL to download your apk, a package name if you want to benchmark an already installed apk or a package name if you want to install from the PlayStore before running the test | You can choose an URL :
| ||||||||||||||||||||
urls |
| You can provide a list of APKs to be installed and eventually measured. You can precise a local path to your apk, a public URL to download your apk, a package name if you want to benchmark an already installed apk or a package name if you want to install from the PlayStore before running the test When using | for each url you can choose the location :
| ||||||||||||||||||||
testPackages |
| If you previously set mode to | |||||||||||||||||||||
testsSuites |
| If you previously set mode to | For example : testsSuites: | ||||||||||||||||||||
monitoredPackages |
| If you previously set mode to | |||||||||||||||||||||
monitoredPackage (Deprecated) |
| If you previously set mode to This field is deprecated, prefer to use monitoredPackages | |||||||||||||||||||||
extras |
| Use to transmit extras parameters to your instrumentation with the format key, value
https://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner) | You can use custom parameters like this : extras: If you use custom UIAutomator tests (no GDSL tests) you can filter the class you launch by annotation : extras: (this extra parameter will be added to your uiautomator instrumentation like this -e annotation com.greenspector.demo.test.MyAnnotation) | ||||||||||||||||||||
networkMode |
| The networkMode of the test. The phone has to be able to handle the networkMode. | WIFI, 4G, 3G or 2G. Default value is WIFI. | ||||||||||||||||||||
| scenario |
| Possible value is APK job / simple scenario (deprecated) :
URL job / simple scenario (deprecated) :
URL job / avance scenario:
|
| |||||||||||||||||||
iterations |
| How many times you want to run the scenario. | |||||||||||||||||||||
testTimeout |
| Timeout for the total duration of the test. Default value is |
| ||||||||||||||||||||
stepName |
| Name of the step | |||||||||||||||||||||
duration |
| Duration of the test. |
| ||||||||||||||||||||
authentication | If you previously set mode to | ||||||||||||||||||||||
actions |
| Set of actions to interact with the authentication form, either by coordinates or by IDs. There is currently two types of actions: |
| ||||||||||||||||||||
browser |
| If you previously set mode to Only Google Chrome is supported for now. |
| ||||||||||||||||||||
cache |
| If you previously set mode to | |||||||||||||||||||||
online |
| Set this to true if you want the Test Runner to automatically send the results of the measures to your GREENSPECTOR Server. Otherwise, set it to | |||||||||||||||||||||
modules | |||||||||||||||||||||||
http_request |
| Set this to true to enable analysis of HTTP requests. | |||||||||||||||||||||
android_system_monitoring |
| Set this to true to enable collection of additional system metrics during the job. | |||||||||||||||||||||
hardware_probe |
| Set this to true to enable physical measurement | |||||||||||||||||||||
wakelock_probe |
| Set this to true to enable wakelock measurement for the first iteration |
...
The Test Runner allow you to test one command writen with 04 - List of GDSL commands
Code Block |
---|
# For example, to start google chrome: ./testrunner testdslcommand --command applicationStart,com.android.chrome |
...