Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
For web measurements, the monitoredPackage option needs to be modified with the name of the application package.
You also need to add the app option as follows:
If the application is available on Play Store (Android) or on Apple Store (iOS):
--app [android package name of app] # ex: --app com.google.android.youtube
--app [url of the app on Apple Store] # ex: --app https://apps.apple.com/fr/app/youtube/id544007664
If the application is present with a local apk (Android) or a local ipa (iOS):
--app [path to the apk] # ex : --app ./my_app.apk
--app [path to the ipa] # ex : --app ./my_app.ipa
If the application is present with a public apk (Android) or a public ipa (iOS):
--app [path to the apk] # ex : --app https://my-website.com/my-app.apk
--app [path to the ipa] # ex : --app https://my-website.com/my-app.ipa
Use the command line below to start a measurement:
--app: apk or ipa to measure. The file could be a local path, a public URL, a package name to download from the PlayStore or an url of the app to download from the Apple Store.
--testsSuite* : Gdsl script name and lists of test files writen with Greenspector DSL. All test files will be launched in the specified order.
--monitoredPackage* : Name of the android package. Probes can monitor multi package at a time. In this case, metrics are agreggated. For website, choose com.android.chrome.
--iterations: Number of iterations of measure wanted. (Default: 1).
--report: Automatically generate the test report in the .greenspector folder and wait for the job to end.(Default: false). This command will send a measure request to the server. After this measure will ran on the Power Test Bench/Cloud, you will find the results on the Web Interface.
--extra: Use to transmit extras parameters with the format name=value. (exemple --e PARAMETERNAME="value" will replace all ${PARAMETERNAME} in the GDSL file by value).
--networkMode: The network mode for the test. Values can be "WIFI", "4G", "3G" or "2G". (Default: WIFI).
--disable-dumpsys: Disable Android System Monitoring. By default, this is enabled and will add one iteration to your job for more detailed metrics (Views, Activity, OpenSSL Sockets, ...). If no need these metrics, disable this iteration, it will reduce testing time.
--only-dumpsys: Run only a Android System Monitoring iteration. This iteration will only be able to retrieve Android System metrics (Views, Activity, OpenSSL Sockets, ...).
Please verify theses parameters to have relevant measurements:
PAUSEDURATION: 30000
PAUSEAFTERLOAD: 1000
config-skipsetupphone: false
iterations: 3
Note that extras in job.yml which contains text, as PSWD for example, can’t contain a “!” because it’s interpreted by the bash. To know more about it go to the Troubleshooting tool.
Results
Results are available on :
The work folder with greenspector/dd-mm-yyyy XXhXXm/tests-results/results.txt
After pressing Launch, the test enters the queue of tests to be executed. It first displays a waiting message and then a measurement in progress message when it is running on a device.
When the execution is complete, the test report shows you the status of the test, whether it was successful or not, and the associated error in the latter case.