We don't have a way to export this macro.
Table of Contents | ||||
---|---|---|---|---|
|
...
Récupérer le testrunner sur https://app.greenspector.com, dans l’onglet Modules, et le placer dans un dossier (par exemple “testrunner_files”).
Ajouter dans ce dossier les fichiers de configuration config_ios.yml et job_ios.yml, ainsi qu'un script gdsl avec l’extension “testgb”.
Modifier ces fichiers pour qu’ils correspondent à la mesure souhaitée.
Exemple d’un fichier config_ios.yml :
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 ip: 192.168.10.52 #Olivier’s iPhone udid: 42df71bb47bb61cca72559672128f1fbb5184a62 #Olivier’s iPhone name: Olivier's iPhone lang: en 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: https://app.greenspector.com # URL of your Greenspector instance token: XXXXX # Your private token registered on Greenspectors |
Le champ udid correspond à l'identifiant unique de l'appareil, trouvable grâce à Xcode (Window > Devices and Simulators).
Exemple d’un fichier job_ios.yml :
Code Block | ||||
---|---|---|---|---|
| ||||
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 d’un script gdsl simple testant l’application YouTube :
...