Testsigma provides you with multiple ways for automating your Test Scenarios.
Adding Test Cases
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:
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.
Adding Test Steps
Now, you have two options to add the Test Steps:
1. If you are new to Testsigma and Test Automation, you may use the Testsigma Recorder option to get started.
Click on the Record button on the top right corner to start recording the actions you wish to perform. Please check the below article to learn the usage of Testsigma Recorder to record your Test Steps easily - How to record Test Steps using Testsigma Recorder for Google Chrome?
2. Otherwise, if you are already familiar with Testsigma, you can create Test Steps using the recommended method i.e using NLP Grammar. We will discuss about it in the next section - Adding your Test Steps using NLP Grammar
Adding your 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 dropdown 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 in the search field.
c. Select the filtered option from the dropdown 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.
Rest of the steps are described in details in the following article - How to add / edit / delete Test Steps for Automated/Manual Test Cases?
That's how we can find the required NLP Grammar for an action. Now we will try the same for four more actions.
2. Typing value in a text field
Enter 'type' in the search field and select 'type' from the drop-down list to get the list of NLP Statements for typing action.
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.
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.
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.
You should have gotten familiar with the process by now. Please try the same for other templates as well. Also, you can check the Test Development > NLP Grammar page if you need more options.