Versions Compared

Key

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

...

Code Block
breakoutModewide
languageyaml
mode: custom # apk | url | custom
greenspector:
  application:
    name: TestLeo # Your application's name
    version: "REFERENCE (iOS)" # Your application's version
job: # Custom job android apk
  testsSuites:   
    - name: suite1
      testFiles:
        - "./testreference.testgb"
  iterations: 1 # Number of iteration for each test case
  testTimeout: 30m0s # Timeout for the total duration of the test, default value is 30m, max value is 60m
  online: true # [true, false]
  modules:
    hardware_probe: false

Exemple de d’un script gdsl simple gdsl testant l’application YouTube :

Code Block
languagetext
#Lancement de l'application
measureStart,CHRGT_homePage
applicationStart;,com.google.ios.youtube
pause;5000
measureStop;LAUNCHYT
measureStart
pause;30000
measureStop;PAUSEYTwaitUntilText,Home
pause,1000
measureStop

#Pause sur la page d’accueil
measureStart,PAUSE_homePage
pause,30000
measureStop

#Ecriture de la recherche
measureStart,ACTION_writeResearch
clickByTextExact,Search
enterText,greenspector
measureStop

#Recherche d'une vidéo
measureStart,CHRGT_videos
clickByTextExact,Search
waitUntilText,Home
pause,1000
measureStop

#Arrêt de l’application
applicationKill,com.google.android.youtube

Pour trouver l’identifiant des applications installées sur le téléphone, taper la commande “ios-deploy -B”.

...