Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • mode:

    • custom: test with a gdsl script

    • app: benchmark from an APK (ex: com.google.ios.youtube)

    • url: benchmark from an URL (ex: https://metropole.nantes.fr)

  • greenspector/application

    • name : the name of the application of Greenspector App

    • version : the name of the version

Code Block
languageyaml
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

  • monitoredPackages: app package

→ 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

...

  • 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
languageyaml
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} # Unique Device ID of name: ${PHONE_NAME}the iPhone
  langname: ${PHONE_LANGUAGENAME}
  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
# Name of the iPhone
greenspector:
  server: ${GREENSPECTOR_CORE_SERVER_URL} # URL of your Greenspector instance
  token: ${PRIVATE_TOKEN} # Your private token registered on Greenspectors
  • plateformplatform: The platform you are testing on (ios)

  • resultPath: The path where the Testrunner saves the tests results. defaults to ./greenspector/measures

  • ip: IP address of the iPhone

  • udid: Unique Device ID of the iPhone (you can find it on Xcode > Window > Devices and Simulators)

  • name: Name of the iPhone (you can find it on Xcode > Window > Devices and Simulators)

  • lang: “en” for english, “fr” for french

  • paths

  • webDriverAgent: Full path to WebDriverAgent xcodeproject

  • ios-deploy: Path to ios-deploy. Leave this empty if ios-deploy is in your PATH

    . For example, you can choose the version of your iPhone (ex : iPhone 14).

  • greenspector/server: URL of Greenspector instance (https://app.greenspector.com)

  • greenspector/token: Private token registered on Greenspector in Profile/Preferences

...

Code Block
languageyaml
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

For more information on the tcpdump module, see: Collect of data via network probe

...

Code Block
languageyaml
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.xcodeprojdev/cu.usbmodem11401
    ios-deploytcpdump:
/usr/local/bin/ios-deploy
  hardware:     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: ******************************

...