Test Steps are a set of statements that define the steps to be performed in a Test Case and they constitute the Test Case.
We are going to discuss managing Test Steps in this article.
First of all, we need to navigate to the Test Cases page as follows:
Applications > Select Application > Select Version > Select Test Case
After selecting the Test Case, we will be taken to the Test Case details page where we can create the Test Steps by clicking on the button.
Create Test Steps
Usually, there are 3 approaches to create a Test Step.
1. Using Natural Language(Template)
2. Using a Step Group
3. Using a Custom Function
When the Create Test Step button is clicked, we will be taken to Create Test Step page that looks like given below:
1. Using Natural Language(Template)
Natural Language option allows you to create Test Steps using an extensible set of commands in Simple English.
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 type 'email@example.com' into the username field on a webpage, start by entering type in the Action Text field.
As soon as we enter type, the following command would pop up in the suggestions list(along with a few other commands):
Type [test data] in [UI identifier]
[test data] is what you need to replace with your username. It can be any data such as a username or email "firstname.lastname@example.org".
[UI Identifier] is what you need to replace with the name of the Web UI Element locator(id, Xpath, name e.t.c) on a web page.
Double click on test data or ui identifier to select it and press delete or backspace key to clear it. Then start entering your username or name of the username field locator there to continue.
For Test Data, 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?
For UI Identifiers, you usually enter a name for the UI identifier variable to be created and later update the variable with a 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 add 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.
Mandatory: Select the Mandatory checkbox to make the execution of this step compulsory for a test case.
Priority: Select the Priority level that you want to set for this Test Step.
Prerequisite: Select a previously created Test Step if successful execution of that step is required to execute this Test Step.
For example, let us see how the following steps are created using Testsigma in the following video.
1. Launching the Application
2. Clicking on UI Identifier named 'Menu'
3. Click on the UI Identifier named 'hide card'
4. Click on the UI Identifier named 'Search'
Edit Test Steps
First of all, click on the Test Case name in Test Case page to navigate to the Test Case Details page under which the required Test Step is located.
To edit existing test steps, click on the Edit button next to the Test Step or click on the Test Step. An inline section to edit the Test Step will open up as shown below:
Click on the Clear button to clear the whole text from the Action Text field.
Make the required changes and click on Update button to finalize changes.
A notification about successful test step update will be shown and we would be taken back to the Test Step Details page.
Delete Test Steps
To delete existing test steps, click on the Delete button next to the Test Step. A confirmation dialog will be shown as given below:
Select the checkbox and click on Delete to confirm Deletion.
As we discussed earlier, there are 2 more approaches to create Test Steps as given below:
2. Using a Step Group: To create a test step with existing step group, go through this article - How To Use Step Group in Test step?
3. Using a Custom Function: To create a custom function in the test step, go through this article - How To Create Custom function in Test step?