Commands Editor (BETA)

Commands Editor allows you to view your test cases in SQL-like language where you can add steps, edit existing steps and validate the script before applying changes to your test cases.

1- On your test case, click More > Advanced view

The window with tab “Commands Editor” will be displayed:

2- You can make changes to the script and validate it before saving. For example, let’s change the Wait period in line 10 from 1 seconds to 5 seconds. After clicking Validate, a message will appear to inform us that the script is correct and you can save your test case.

3- In case there are multiple errors in the script, clicking Validate will show you an error message as well as Xs next to each incorrect line. You can navigate through these errors using the highlighted buttons to fix them before applying the edits to the test case.

4- If you would like to skip steps, you can add ‘-- ’ at the beginning of the line and it will change color to green. After saving, the step will be marked as Skipped.

Snippets

You can use snippets which make it easier to author steps using the Advanced Commands Editor.

1- To start, click on the first line to enter your first command.

2- Enter “click” where you will see the snippet ‘web.click'. Navigate to it using your keyboard and click Tab.

3- The first part of the snippet that requires editing will be highlighted in blue and is ready for you to make changes.

4- Enter the name of the locator and click Tab again to navigate to the next part of the snippet

5- If you would like to add a custom caption, you can enter it in the double quotes. If not, you can leave it the way it is or press Delete on your keyboard to remove it.

6- Once finished, click Validate to check that the script is correct.

7- Click Apply in order to apply the script to your test case.

Commands Editor Changes

After opening a test case, you can start making changes to the script and then check all the changes you made before saving.

1- After making changes, click Toggle Show Changes link on the top right of the editor

2- You will see a read-only screen on the right side which highlights the step(s) were changes took place. The example below shows that the Wait period was changed from 1 seconds to 4 seconds.

4- Afterwards, you can proceed to Validate and Apply changes to your test case. To close the changes screen, simply click Toggle Show Changes again.