Navigation: Test Development > Test Cases
In the Test Cases page, you will see the list of available Test Cases. Select an existing Test Case by clicking on its name or create a new Test Case - How to add / edit / delete a Test Case?
We will be taken to the Test Case details page where we can add the Test Steps by clicking on the Create Test Steps button.
When the Create Test Step button is clicked, we will be taken to Create Test Step page that looks like given below:
In the Test Step Type, we can select any of the following methods to create Test Steps - Natural Language, Step Group, Custom Function, RESTful API, and For Loop.
In this article, we are going to discuss about using Natural Language(simple English) to write test steps. Check the other 4 methods for creating a Test Step here:
Creating Test Steps using Natural Language(Template)
Action Text: Start by entering the action that you want to perform in simple English. As soon as you start entering, the Testsigma interpreter presents a drop-down list of available commands and you can select the required command by clicking on it.
if you want to create a Test Step to enter 'email@example.com' into the username field on a webpage, start by entering enter into the Action Text field.
As soon as we type enter, the following command would pop up in the suggestions list(along with a few other commands): Enter [test data] in the [UI identifier] field
If you want to perform another action and you can't find suggestions for your entered action, you may also use the Help button(question mark icon) to show a list of actions. Switch to the Examples tab, select the action from the list and click on one of the suggested templates to auto-fill in the Action Text box.
Double click on test data or ui identifier to select it and press delete or backspace key to clear it. After clearing, you can enter the corresponding value there.
[test data] is what you need to replace with your individual test data i.e. username. It can be any data such as a username or email "firstname.lastname@example.org". You can either enter the value manually or make use of one of the Test Data types available in Testsigma.
Please refer this article for more details on Test Data Types - Different types of Test Data and their usage in Testsigma?
[UI Identifier] is what you need to replace with a name for the Web UI Element locator(id, XPath, name e.t.c) on a web page. For UI Identifiers, you can enter a name for the UI identifier variable to be created first with empty value and later update the created UI Identifier with a locator value.
Please refer this article for more details on creating a UI Identifier during Test Step creation - How to create UI Identifier while creating Test Step?
If you prefer, you may also create UI Identifiers beforehand and use them while creating Test Steps. This way, you will get suggestions from the list of UI identifiers you already created. Please refer this article for more details on creating and managing UI Identifiers - How to manage UI Identifiers?
Click on the Clear button on the right side to clear the Test Step and start from the beginning.
For Advanced Test Step Settings, please check the following link -Advanced Test Steps Settings - Max Wait Time, Priority, Prerequisite, and Mandatory
After entering all the values,
- Click on Create and Continue button to create the current Test Step and simultaneously open the Create Test Step wizard for creating the next Test Step.
- Click on Create button to create the Step and takes us back to the Test Step details page.
Check the following video for a bit more clarity on creating Test Steps: