Greenspector DSL for Android

The aim of the Greenspector Domain-Specific Language is to help writing automated tests by reducing the time to write tests and to avoid using an IDE. Thus non developer people can write automated tests.

In the context of Greenspector, you can use this DSL with the or the Greenspector

Android platform

The Greenspector tools transform the DSL file in UIAutomator tests.

Write the command in a text file with the extension .testgb.

Example steps1.testgb :

# a comment pressHome screenSetLuminosity,125 measureStart,mesure 1 du fichier steps1 applicationStart,com.greenspector.demo waitUntilText,veuillez choisir votre pays measureStop, pause,2000

 

Dynamic Parameters

To add a parameter in a GDSL file write ${PARAMETERNAME}

  • No special characters on parameter name

  • No space on parameter name

Command parameters

A parameter for a command should not contain any coma as it is the seperator character.

Command catalog

Here is the description of the DSL grouped by domain of command.

if you want you can also test a unique command with the