Step syntax

Write your steps in plain English, using one of the structures shown below (the words the and that are optional).

You can use single quotes or double quotes to enclose a string. The string can also contain quotes, but these quotes must be a different type than the quotes enclosing the string. See the example of Structure 3.

Structure Description
1

Syntax: Click/press/tap the <control type>

Example: Click the bell

2

Syntax: Click/press/tap the "<text for identification>" button/text

Example: Click the "SIGN IN" button

Note: Text related to a class may be marked together in the user interface. This example is displayed as . Press the Backspace key twice to delete the text and class together.

3

Syntax: Type "<text to type>" into "<text for identification>" input/field

Example: Type "Boy's shirt" into "USER NAME" input

4

Syntax: Search for "<text to find>"

Example: Search for "Wikipedia"

5

Syntax: Set "value" into @<output parameter name>

Example: Set 1 into @Outpara1

6

Syntax: Set @<input parameter name> into @<output parameter name>

Example: Set @Inputpara1 into @Outputpara1

7

Syntax:

  • Set value of '<text for identification>' <control type> into @<output parameter name>

  • Set "<text for identification>" <control type> value into @<output parameter name>

Example:

  • Set value of 'Username' input into @Outpara1

  • Set "Username" input value into @Outpara1

5

Syntax: Verify that the '<text for identification>' <control type> exists

Example: Verify that the 'urgent' alarm exists

6

Syntax: Verify that the '<text for identification>' <control type> does not exist

Example: Verify the 'INPUT' button does not exist

7

Syntax: Verify that the value of "<text for identification>" <control type> is <value>

Example: Verify the value of "Username" input is "John".

Note: You can verify string values of objects. The value can be an input parameter or a constant.

8

Syntax: Verify that the value of "<text for identification>" <control type> contains <value>

Example: Verify the value of "Username" input contains "John"

Note: You can verify string values of objects. The value can be an input parameter or a constant.

9

Syntax: Verify that the value of "<text for identification>" <control type> within <value>

Example: Verify the value of "Text" within "Good Morning John".

Note: You can verify string values of objects. The value can be an input parameter or a constant.

10

Syntax:

If the '<text for identification>' <control type> exists
    <steps>
Else
    <steps>

Example:

If the menu exists
       Click the menu
Else
      Click the 'Close' button

Note: The Else statement is optional.

11

Syntax:

If the '<text for identification>' <control type> does not exist
    <steps>
Else
    <steps>

Example: 

If the menu does not exist
      Click the 'Close' button
Else
      Click the menu

Note: The Else statement is optional.

Back to top

See also: