-
Notifications
You must be signed in to change notification settings - Fork 34
Updated Step Groups doc with Global Step Group Update #853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ title: "Test Step Type: Step Groups" | |
| metadesc: "Instead of writing the same steps repeatedly, you can create a step group and use it in the test cases when required. This article discusses how to use step groups in Testsigma" | ||
| noindex: false | ||
| order: 4.23 | ||
| page_id: "Test step type: Step groups" | ||
| page_id: "test-step-type-step-groups" | ||
| warning: false | ||
| contextual_links: | ||
| - type: section | ||
|
|
@@ -26,81 +26,77 @@ contextual_links: | |
| - type: link | ||
| name: "Use Step Group in a Test Case" | ||
| url: "#use-step-group-in-a-test-case" | ||
| - type: link | ||
| name: "Use a Step Group Between Projects" | ||
| url: "#use-a-step-group-between-projects" | ||
| - type: link | ||
| name: "Additional Actions Possible on Iteration Count" | ||
| url: "#additional-actions-possible-on-iteration-count" | ||
| --- | ||
|
|
||
| --- | ||
|
|
||
| Sometimes, a group of steps is common to multiple test cases. | ||
| Sometimes, a group of steps is common across multiple test cases. | ||
|
|
||
| **For Example:** | ||
| 1. You must log into an account before performing a fund transfer. | ||
| 2. You must log into an account before deleting a beneficiary account. | ||
| 3. You must log into an account before downloading the account statement. | ||
| **For example:** | ||
| - You must log in to an account before performing a fund transfer. | ||
| - You must log in to an account before deleting a beneficiary account. | ||
| - You must log in to an account before downloading an account statement. | ||
|
|
||
| Here, logging into an account is a common step. So, instead of writing the same steps repeatedly, we create a step group and use it in the test cases when required. This article discusses how to create and use step groups in Testsigma. | ||
| Logging in to an account is a common prerequisite. Instead of duplicating these steps in each test case, you can create a step group and reuse it wherever required. This article describes how to create and use step groups in Testsigma. | ||
|
|
||
| --- | ||
|
|
||
| ## **Create a New Step Group** | ||
| 1. Navigate to **Create Tests > Step Groups**, click on **Create Step Group**. | ||
|  | ||
|
|
||
| 1. Enter **Name** and create steps manually by clicking on **Add new step**. | ||
|  | ||
| 1. From the left navigatio bar, go to **Create Tests > Step Groups**, click **Create Step Group**. | ||
|  | ||
|
|
||
| 2. Enter **Name** and create steps manually by clicking **Add new step**. | ||
|  | ||
|
|
||
| Alternatively, you can click on Record to record steps for the step group. | ||
|  | ||
| Alternatively, you can click **Record** to record steps for the step group. | ||
|  | ||
|
|
||
|
|
||
| 3. After adding all the steps, you can use the step group in any test case. | ||
|
|
||
|
|
||
| [[info | **NOTE**:]] | ||
| | You can also create a data driven step group by associating a test data profile from the step group settings. Follow the steps below to associate a test data profile. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use hyphenated "data-driven" for consistency with standard terminology. Lines 66 and 166 use "data driven" (two words). Technical documentation typically hyphenates compound adjectives: "data-driven". Apply this fix on both lines: - You can also create a data driven step group
+ You can also create a data-driven step group- You can also add a data driven step group to a data driven test case
+ You can also add a data-driven step group to a data-driven test caseAlso applies to: 166-166 🧰 Tools🪛 LanguageTool[grammar] ~66-~66: Use a hyphen to join words. (QB_NEW_EN_HYPHEN) 🤖 Prompt for AI Agents |
||
| | 1. Create a step group and click on **Step Group Settings**. | ||
| | 1. Create a step group and click **Step Group Settings**. | ||
| | 2. On **Step Group Settings**, | ||
| | - Select the **Test Data Profile** you want to associate with the Step Group. | ||
| |  | ||
| |  | ||
| | - Enable the **Data Driven** toggle. | ||
| |  | ||
| |  | ||
| | - Now, create all the steps and your data-driven step group will be ready to use across test cases. | ||
|
|
||
|
|
||
| Here's a quick GIF demonstrating how to create a step group in Testsigma. | ||
|  | ||
|
|
||
| --- | ||
|
|
||
| ## **Edit a Step Group** | ||
| 1. Navigate to **Create Tests > Step Groups**. | ||
|  | ||
|
|
||
| 2. Click on the step group you want to edit and make the changes. | ||
|  | ||
| 1. From the left navigatio bar, go to **Create Tests > Step Groups**. | ||
|
|
||
| [[info | **NOTE**:]] | ||
| | The changes will affect all the test cases that use the step group. | ||
| 2. Open the step group you want to update and make the changes. | ||
|
|
||
| [[info | **NOTE**:]] | ||
| | The changes will affect all the test cases that use the step group. | ||
|
|
||
| --- | ||
|
|
||
| ## **Delete a Step Group** | ||
|
|
||
| 1. From the **Step Group** list overlay, click on kebab menu on the step group you want to delete and click on **Delete**. | ||
|
|
||
|  | ||
| 1. From the **Step Group** list page, click kebab menu next to the step group you want to delete and click **Delete**. | ||
|  | ||
|
|
||
| 2. This will open **Deletion Warning** popup. | ||
|
|
||
|  | ||
|
|
||
| [[info | **NOTE**:]] | ||
| | This will show the list of affected test cases. Deletion of the step group will remove the step group in the linked test cases. | ||
|
|
||
| 3. Enter **DELETE** and click on **I understand, delete this Step Group**. | ||
|
|
||
| 3. Enter **DELETE** and click **I understand, delete this Step Group**. | ||
|  | ||
|
|
||
| 4. The step group will be deleted successfully. | ||
|
|
@@ -109,21 +105,16 @@ Here's a quick GIF demonstrating how to create a step group in Testsigma. | |
|
|
||
|
|
||
| ## **Edit a Step Group for a Specific Test Case** | ||
| 1. Navigate to **Create Tests > Test Cases**. | ||
|  | ||
|
|
||
|
|
||
| 2. Click on the **Test Case** in which you want to edit the Step Group. | ||
|  | ||
|
|
||
| 1. From the left navigatio bar, go to **Create Tests > Test Cases**. | ||
|
|
||
| 3. Click on the **Step Group** to edit any test data or element being used in the step group. | ||
|  | ||
| 2. Open the **Test Case** in which you want to edit the Step Group. | ||
|
|
||
| 3. Expand the **Step Group** to edit any test data or element being used in the step group. | ||
|  | ||
|
|
||
| 4. After editing click outside the step to save the changes. | ||
|  | ||
|
|
||
| 4. After updating any step click **Update Step** to save the changes. | ||
|  | ||
|
|
||
| [[info | **NOTE**:]] | ||
| | 1. You can edit test data and elements for specific test cases but not the NLP. | ||
|
|
@@ -133,55 +124,77 @@ Here's a quick GIF demonstrating how to create a step group in Testsigma. | |
| --- | ||
|
|
||
| ## **Create a Step Group From a Test Case** | ||
| 1. Navigate to **Create Tests > Test Cases** and hover over the test case from you want to create a step group and click on it. | ||
|  | ||
|
|
||
| 1. From the left navigatio bar, go to **Create Tests > Test Cases**. | ||
|
|
||
| 2. Once you start selecting the test steps, an option bar will appear on top of the test steps. Select all the steps you want in a step group and click on **Create Step Group**. | ||
|  | ||
|
|
||
| 2. Open the **Test Case** from you want to create a step group. | ||
|
|
||
| 3. This will open a pop-up as below: | ||
|  | ||
| 3. Once you start selecting the test steps, an option bar will appear on top of the test steps. Select all the steps you want in a step group and click on **Create Step Group**. | ||
|  | ||
|
|
||
| 4. This will open a pop-up as below: | ||
|  | ||
| - If you click on the **Create**, a new step group with the selected test steps and the given name would be created. | ||
| - If you click on the **Create and Replace** button, a new step group with the selected test steps and the given name would be created and the selected test steps would be replaced by the created step group. | ||
|
|
||
|
|
||
| [[info | **NOTE**:]] | ||
| | If you don't select consecutive test steps then the pop-up that appears won't show you the Create and Replace button. | ||
| |  | ||
| | If you don't select consecutive test steps then the pop-up that appears won't show you the **Create and Replace** button. | ||
| |  | ||
|
|
||
|
|
||
| --- | ||
|
|
||
|
|
||
| ## **Use Step Group in a Test Case** | ||
|
|
||
| 1. Navigate to **Create Tests > Test Cases**. Either click on **Create Test Case** or hover over the existing test case and click on it. | ||
|  | ||
| 1. From the left navigatio bar, go to **Create Tests > Test Cases**. | ||
|
|
||
| 2. Expand a **Feature**, then expand a **Scenario**, and click ‘**+**’ next to the scenario where you want to add the test case or open a **Test Case** in which you want to add a step group. | ||
|
|
||
| 2. On the test case details page, click on the option on the left side of the test step and select **Step Group**. | ||
|  | ||
|
|
||
| 3. On the test case details page, click the option on the left side of the test step and select **Step Group**. | ||
|  | ||
|
|
||
| 4. From the **Step Group** list overlay, select the step group you want to add. | ||
|  | ||
|  | ||
|
|
||
| 5. Click **Create Step**. | ||
|  | ||
|
|
||
|
|
||
| [[info | **NOTE**:]] | ||
| | You can also add a data driven step group to a data driven test case. This allows iterating through multiple data sets via the step group for every single iteration of your data-driven test case. | ||
|
|
||
| --- | ||
|
|
||
| ## **Use a Step Group Between Projects** | ||
|
|
||
| 1. From the left navigation bar, go to **Create Tests > Test Cases**. | ||
|
|
||
| 2. Expand a feature, expand a scenario, and click **+** next to the scenario where you want to add a test case. Alternatively, open a test case in which you want to add a step group. | ||
|
|
||
| 3. On the test case details page, click the option icon next to the test step, and then select **Step Group**. | ||
|
|
||
| 5. Click on **Create Step**. | ||
|  | ||
| 4. In the **Step Group** list overlay, click **Reuse Step Group**. | ||
|  | ||
|
|
||
| 5. In the **Reuse Step Group** dialog: | ||
| - Select the **project**, **application**, and **version**. | ||
| - Select a step group from the **Reuse Step Group** dropdown list. | ||
|  | ||
|
|
||
| 6. Click **Create Step**. | ||
|  | ||
|
|
||
| 7. The step group is added from the selected project. | ||
|
|
||
| [[info | **NOTE**:]] | ||
| | You can also add a data driven step group to a data driven test case. This allows iterating through multiple data sets via the step group for every single iteration of your data-driven test case. | ||
| | You can reuse step groups only between **Web**, **Android**, and **iOS** applications. | ||
|
|
||
| --- | ||
|
|
||
| ## **Additional actions possible on iteration count** | ||
|
|
||
|
|
||
| 1. **Store**: In a step group, when a test data profile is being iterated - an additional action is possible. The iteration count can be stored into a variable for later use. (Iteration count is the current count that is being iterated over the associate test data profile in the step group in Testsigma.) Below is how the syntax for the Store NLP looks like: | ||
|
|
||
|  | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix spelling: "navigatio" → "navigation".
The phrase "From the left navigatio bar" appears on multiple lines (52, 79, 109, 128, 151). This is a typo that should be corrected to "navigation".
Apply this fix across all occurrences:
Also applies to: 79-79, 109-109, 128-128, 151-151
🧰 Tools
🪛 LanguageTool
[grammar] ~52-~52: Ensure spelling is correct
Context: ...te a New Step Group** 1. From the left navigatio bar, go to **Create Tests > Step Groups...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
🤖 Prompt for AI Agents