...
Code Block | ||
---|---|---|
| ||
job: # List all mandatory apkipa to install on the phone before the launch of the test # URLApp can be package namepath to installApple from PlaystoreStore, local path onto an apkipa or public URL to an apkipa # urlsapps: # - ${URLapp} testsSuites: - name: suite1 testFiles: - "./script.testgb" monitoredPackages: - ${MONITORED_PACKAGE} # The package to monitor, existing or newly installed iterations: 1 # Number of iteration for each test case extras: config-screenbrightness: "127" config-skipsetupphone: "true" PAUSEDURATION: "${PAUSEDURATION}" PAUSEAFTERLOAD: "${PAUSEAFTERLOAD}" 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: hardware_probe: false tcpdump: false |
testsSuites
name: the name of the application
testFiles: the path of the functional journey file
→ With ios, this field is only use for benchmark APK to open the app
iterations: Number of iteration for each test case
extras :
PAUSEDURATION
PAUSEAFTERLOAD
...
testTimeout: Timeout for the total duration of the test, default value is 30m, max value is 60m
online:
false : results available on your PC
true : results available on Greenspector App and locally
→ With ios, the networkMode field is not used
modules
hardware_probe: “false” (use of the hardware module to get the energy consumption)
tcpdump: “false” (use of the tcpdump module to get the exchanged data)
...
Code Block | ||
---|---|---|
| ||
platform: ios # The platform you are testing on [mobile | pc] resultPath: ./greenspector # The path where you want the Testrunner to save the tests results. defaults to ./greenspector/measures target: # target bloc for iOS mode ipconnection: ${PHONE_IP}usb udid: ${PHONE_UDID} name: ${PHONE_NAME} lang: ${PHONE_LANGUAGE} paths: webDriverAgent: /usr/local/lib/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj # Full path to WebDriverAgent xcodeproject ios-deploy: /usr/local/bin/ios-deploy # Path to ios-deploy. Leave this empty if ios-deploy is in your PATH greenspector: server: ${GREENSPECTOR_CORE_SERVER_URL} # URL of your Greenspector instance token: ${PRIVATE_TOKEN} # Your private token registered on Greenspectors |
...
Code Block | ||
---|---|---|
| ||
target: # For the hardware_probe module in the job.yml file hardware: address: /dev/ttyACM0 # For the tcpdump module in the job.yml file tcpdump: deviceIP: 10.42.0.129 # IP of the device to measure gatewayIP: 10.42.0.1 # IP of the gateway used to filter data networkInterface: wlp2s0 # Network interface used to detect data (wlp2s0...) keepPcap: false # If true, it keeps the pcap file at the end of the measures ipFilters: # Other IP addresses used to filter data apple: false # If true, it filters data related with 17.0.0.0/8 launchOnDevice: false # If true, it launches tcpdump on the device |
...
Code Block | ||
---|---|---|
| ||
log-level: debug platform: ios resultPath: ./results target: ip: 192.168.2.4 udid: 00008110-001969180AA8201E name: "iPhone" langhardware: fr paths: webDriverAgent address: /opt/homebrew/lib/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj ios-deploy: /usr/local/bin/ios-deploy hardwaredev/cu.usbmodem11401 tcpdump: addressdeviceIP: /dev/cu.usbmodem11401 tcpdump:192.168.2.4 gatewayIP: 192.168.2.1 networkInterface: bridge100 ipFilters: apple: true greenspector: server: https://app.greenspector.com token: ****************************** |
...