Prerequisite: Testsigma provides you with multiple ways for automating your Test Scenarios. The very first step in all of them would be to create a Test Case where you can add your Test Steps. If you have not created a Test Case already, check the below guide to know how to create Test Case: How to add / edit / delete a Test Case?


Creating the Test Case takes you to the Test Case details page.  If you have created a Test Case previously, click on the Test Case name from Test Development > Test Cases page to take you to the Test Case details page.


Note: If you are looking for simple record and playback option, refer to - How to record Test Steps using Testsigma Recorder for Google Chrome?

(Not recommended - Why is Record and Playback not suitable for enterprise-class Test Automation?)


Adding Test Steps using NLP Grammar

Assuming you are in the Test Case details page for a particular Test Case, you can click on the Add First Step or Add Next Step button to add a new Test Step.

The Test Step creation wizard opens as shown below:


Now let us see how we can find the right NLP Grammar for automating your actions. We will be trying five of the most common actions we perform while automating Test Cases. Once you are familiar with the process, you can find the NLP Grammar for other actions without much effort.



1. Navigating to a Web page

a. Firstly, click on the help icon(question mark icon) to open the Examples Tab.

b. Click on the drop-down menu and enter the action you wish to perform in the search field. In this case, we want to navigate to a web page and we can try entering 'navigate' or 'go to' in the search field.


c. Select the filtered option from the drop-down list, which is  'navigate' in this case. You can see the available NLP Statements for that action.

d. Click on the NLP Grammar to fill it automatically in the Action Text box.

That's how we can find the required NLP Grammar for an action. Now we will try the same for four more actions.


Note: Once you learn the right grammar for most common actions, start typing the first part in the action text field to see the auto suggested NLP statements below the action text field. Click on the right suggestion to auto-fill the value. You will get suggestion for test data and UI Identifiers similarly.



2. Typing value in a text field

a. Type  'enter' in the search field and select 'enter' from the drop-down list to get the list of NLP Statements for typing action.


b. Click on the NLP Grammar to fill it automatically in the Action Text box.

Note: Once you learn the right grammar for most common actions, start typing in the action text field to see the auto suggested NLP statements below the action text field. Click on the right suggestion to auto-fill the value. You will get suggestion for test data and UI Identifiers similarly.



3. Clicking on a button

Enter 'click' in the search field and select 'click' from the drop-down list to get the list of NLP Statements for clicking action.


Click on the NLP Grammar to fill it automatically in the Action Text box.

Note: Once you learn the right grammar for most common actions, start typing in the action text field to see the auto suggested NLP statements below the action text field. Click on the right suggestion to auto-fill the value. You will get suggestion for test data and UI Identifiers similarly.



4. Verify page title

Enter 'verify' in the search field and select 'verify' from the drop-down list to get the list of NLP Statements for verification action.

Click on the NLP Grammar to fill it automatically in the Action Text box.

Note: Once you learn the right grammar for most common actions, start typing in the action text field to see the auto suggested NLP statements below the action text field. Click on the right suggestion to auto-fill the value. You will get suggestion for test data and UI Identifiers similarly.


5. Switch to a Window

Sometimes, element types will work as well. In this case, enter 'window' in the search field and select 'window' from the drop-down list to get the list of NLP Statements for window related actions.


Click on the NLP Grammar to fill it automatically in the Action Text box.

Note: Once you learn the right grammar for most common actions, start typing in the action text field to see the auto suggested NLP statements below the action text field. Click on the right suggestion to auto-fill the value. You will get suggestion for test data and UI Identifiers similarly.


You should have gotten familiar with the process by now. Please try the same for other actions as well. Also, you can check the Test Development > NLP Grammar page if you need a complete list of the NLP Grammar.