General Commands

Here is the list of general commands:

Commands:
waitrepeat
migrateinclude
conditionassert
shell

<wait>

Description: command that pauses the passage of the scenario to perform a certain function that requires a wait. The scenario continues running in the usual way after this command.

Required parameters:

  1. comment
  2. time – integer value

Optional parameters:

  1. unit – seconds or milliseconds. Seconds are used as default if the unit param is not chosen
  2. condition - condition according to which this test step will or won't be executed
  3. threshold - parameter, that set maximum allowed test step execution time
XML
Copy

<migrate>

Description: command to migrate dataset within your test scenario.

Required parameters:

  1. comment
  2. alias - unique name of database you want to insert dataquery
  3. dataset - name of file with dataset you want to migrate (file with dataset has to be stored in 'data' folder)

Optional parameters:

  1. name - name of the database you're using. Default DB is postgres. Possible options are:

    1. mongodb
    2. mysql
    3. postgres
    4. dynamo
    5. oracle
    6. clickhouse
    7. redis
  2. condition - condition according to which this test step will or won't be executed

  3. threshold - parameter, that set maximum allowed test step execution time

XML
Copy

<condition>

Description: command to set up condition for test execution.

Required parameters:

  1. comment
  2. name - name of condition to use in further test steps
  3. spel - boolean expression, has to be created with Spring Expression Language (SpEL)

Optional parameters:

  1. condition - condition according to which this test step will or won't be executed
  2. threshold - parameter, that set maximum allowed test step execution time
XML
Copy

More detailed information regarding conditions you can find here.

<repeat>

Description: command that allows you to repeat any action used in the commands.

Required parameters:

  1. comment

Optional parameters:

  1. condition - condition according to which this test step will or won't be executed
  2. threshold - parameter, that set maximum allowed test step execution time
  3. times - is to set the number of repeating (not used with variations)
  4. variations - attribute for the variations file (not used with times)
XML
Copy

Inside the <repeat> command you can use such commands as:

migratemysql
webgraphql
nativemobilebrowser
varmongo
httppostgres
waitdynamo
includeclickhouse
repeatoracle
smtptwilio
lambdasendgrid
sessqs
elasticsearchrabbit
shellkafka
s3redis

<include>

Description: command that allows you to run a ‘scenario inside a scenario’ (often used to bundle different scenarios).

Required parameters:

  1. comment
  2. scenario - path to the scenario you need to launch. Since all scenarios must be stored in 'scenarios' folder, in this parameter you need specify path to your scenario from 'scenario' folder

Optional parameters:

  1. condition - condition according to which this test step will or won't be executed
  2. threshold - parameter, that set maximum allowed test step execution time
XML
Copy

<assert>

Description: command to check entered data.

There are two types:

  • equal - equality of two or more values is checked
  • notEqual - the inequality of two or more values is checked

Required attribute for each type:

  1. comment

Optional attribute for each type :

  1. condition - condition according to which this test step will or won't be executed
  2. threshold - parameter, that set maximum allowed test step execution time

Required p arameters according to the type:

  1. equal

    1. comment
      1. content - values for comparison (The minimum number must be two)
  2. notEqual

    1. comment
      1. content - values for comparison (The minimum number must be two)
XML
Copy

<shell>

Description: this command is a directive that instructs a command-line interpreter (shell) to perform a specific action or series of actions.

Required attribute :

  1. comment
  2. file - file with expected result for particular query
  3. shellFile - element provides the name of the shell script file to be executed
  4. shellCommand - elements list the individual shell commands that are part of the script

Optional attribute :

  1. condition - condition according to which this test step will or won't be executed
  2. threshold - parameter, that set maximum allowed test step execution time

Note! - can be used only shellFile or shellCommand and both.

XML
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard