Skip to content

create a test script

Sallah Kokaina edited this page Jan 13, 2016 · 2 revisions

Create a test script

A script is a plain text file that represents a full or partial test case. It can contain setup blocks, variable declaration, scenario blocks, and comments.

Comments

Everything that is not a block (setup or scenario), a variable declaration, or an include, will be considered as a comment. For the moment, comments are not visible in the test reports.

Setup block - ui object repository

|| auto setup || web page || GoogleSearchPage  ||
| name   | type  | locator | method | position |
| search | input | lst-ib  | ID     | 0        |

The title line must contain “auto setup”...

##Import a script

#include testFile.script
#include someOtherFolder/testFile2.script

To include another script, type #include followed by the relative path of the script. During the test execution, the #include line will be replaced by the imported file.

Clone this wiki locally