...
If your application is already installed on the phone or is available on PlayStore, you need to precise the package name. For example, with this we launch 3 iterations on the application Netflix.
Code Block |
---|
gspt --spinnerOff testbench benchmark-apk --apkFile "com.netflix.mediaclient" --iterations 3 |
...
In other case, you need to pass an apk via a public url or an url accessible by your jenkins
Code Block |
---|
gspt --spinnerOff testbench benchmark-apk --apkFile https://dl.greenspector.com/demo/demo.apk --iterations 3 |
...
Or to pass an apk via an absolute PATH in JENKINS or relative PATH in your freestyle project
Code Block |
---|
gspt --spinnerOff testbench benchmark-apk --apkFile ./demo.apk --iterations 3 |
...
Code Block |
---|
# Path to your GDSL script in the working directory
PWD=$(pwd)
TEST_SUITE1="$PWD/greenspector-site.testgb"
# launch a custom test with your gdsl script
gspt --spinnerOff testbench custom-tests --monitoredPackage com.android.chrome --iterations 3 --testsSuite "suite1:$TEST_SUITE1" --networkMode WIFI |
- To write GDSL Test, you can consult read Greenspector DSL
- You should set the monitoredPackage argument.
...