Versions Compared

Key

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

Status
colourGreen
titleupdate 25 nov 2024

Info

The testrunner needs job and config files to execute tests. They can be found in the Modules/Testrunner/Templates section on Greenspector App Examples section of Greenspector’s Gitlab.

Table of Contents
minLevel1
maxLevel2
outlinefalse
typelist
printablefalse

...

Here, there is the file template for android test available on Modules Examples section /Testrunner/Job for Android in Greenspector AppGitlab.

Different code lines are explained below.

...

  • mode:

    • custom: test with a gdsl script

    • apk: benchmark from an APK (ex: com.google.android.youtube)

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

    • freerunner: manual test (in this case, the job.monitoredPackages, job.stepName and job.duration fields must be completed)

  • greenspector/application

    • name : name of the application of Greenspector AppStudio

    • version : name of the version

...

Here, there is the file template for android test available on Modules Examples section /Testrunner/Config for Android in Greenspector AppGitlab.

Different code lines are explained below.

...

  • plateform: The platform you are testing on (mobile)

  • connection: The way the device is connected

    • wifi

    • usb

  • ip: IP address of mobile

  • port: The port used by adb to connect to the device. Defaults to 5555

  • paths/adb: The path to adb in your Android SDK installation

  • paths/aapt: The path to aapt in your Android SDK installation

  • greenspector/server: URL of Greenspector instance (https://appcore-saas-prod.greenspector.com)

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

Parameters can be added:

  • resultPath: The path where you want the Testrunner to save the tests results. defaults to ./greenspector

  • log-level: The log level you want (from maximum to minimum log)

    • debug

    • info

    • warn

    • error

    • fatal

    • panic

...

Code Block
languageyaml
platform: mobile
resultPath: ./greenspector
log-level: debug

target:
  connection: wifi
  ip: 10.0.6.34
  port: 5555
  paths:
    adb: adb
    aapt: aapt
  hardware:
    address: /dev/ttyACM0

greenspector:
  server: https://appcore-saas-prod.greenspector.com/
  token: ******************************

...