Step group is a set of Test Steps, that are used together to perform a task.
For Example, testing login for an application is common for many test cases. In that case, we can create a step group with the steps required for a login process and later we can use the same step group wherever we need to perform login thus avoiding duplicate creation of same steps. Only the login credentials such as username and password and UI identifiers for the page needs to be modified.
In Testsigma, Step Groups are implemented as a variation of Test Cases i.e you can create Step Groups in a manner similar to the creation of a Test Case.
You can add a Step Group to a Test Case just like adding any other Test Step. The only difference is that a Test Step is a single step/action whereas a Step Group is a set of Test Steps.
Steps for creating and using a Step Group
Before adding a Step Group to a Test Case, we need to create one. Once the Step Group is created, we can start using them in our Test Cases.
The steps to be followed in creating and using a Step Group can be summarized as follows:
1. First of all, create a Step Group using the Create Step Group button in the Test Cases list page. The process is similar to creating a Test Case with some options removed.
2. Secondly, add the required Test Steps to the Step Group just as we add Test Steps in Test Cases. Here, you wouldn't need to use the Natural Language-based Step Creation. Just a concise Test Step to understand the step to be performed manually would suffice.
3. Finally, navigate to the specific Test Case where we need to add the Step Group and perform the following steps:
Click on the Create Test Step button to open the Create Test Step wizard. Select the Step Group radio button and the Action Text field changes to a Step Group selector containing already created Step Groups as shown below:
Select the Step Group that you want to include in this Test Case, make the necessary changes in remaining fields if necessary and click on the Create button to add the Step Group in this Test Case.