Test results passed but I think the test didn't run
On rooted device (like s9 on our TestBench), you can’t pass spaces in extras parameters values.
In the example bellow, you need to remove spaces in extra parameter QUESTION1
when you run Greenspector CLI
./gspt testbench custom-tests --testsSuite launch:./script.testgb --monitoredPackage "com.android.chrome" -e QUESTION1="How can I reduce the environmental impacts of my website? "
In the example bellow, you need to remove spaces in extra parameter step1
in job.yml when you run Test Runner
# Testrunner job configuration file
mode: custom # apk | url | custom
greenspector:
application:
name: Myapp # Your application's name
version: "1" # Your application's version
job: # Custom job android apk
testsSuites:
- name: suite1
testFiles:
- "../dsl/testdsl.testgb"
monitoredPackages:
- com.android.chrome # The package to monitor, existing or newly installed
iterations: 1 # Number of iteration for each test case
extras:
config-screenbrightness: "127"
step1: "step1 with space" #space do not work on rooted device
config-skipsetupphone: "false"
testTimeout: 30m0s # Timeout for the total duration of the test, default value is 30m, max value is 60m
online: true # [true, false]
networkMode: WIFI
modules:
android_system_monitoring: false
tcpdump: false