Configuring shared test steps
TestRail 7.0 gives you the ability to share the same set of test steps across multiple test cases so you can edit a single set of steps instead of having to edit many separate test cases.
How to Create a New Set of Shared Steps
As long as your team has a test case template that uses separated steps in your project, a new Shared Test Steps button will appear in your Test Case repository. Any sets of test steps added to your list of Shared Test Steps will be available in the separated steps field of any test case in the current project.
There are two ways to create a set of Shared Test Steps:
- Create a new set of steps from the Shared Test Steps menu
- Share a set of existing steps from a test case
First, as a user with permission to add and edit test cases, click on the ‘Shared Test Steps’ button when viewing the list of test cases in a project or suite:
Create a new set of test steps and give them a name:
Here you can define a name for the shared steps set and select the steps that you want to share. Notice that only consecutive steps can be declared as shared steps.
How to Create a Shared Steps Set with Existing Test Steps
Also, as an alternative you can edit an existing test case and choose a sequence of steps from the test case to become shared test steps.
Go to edit test case and click on Share.
How to Use Shared Steps in Test Cases
In a new or existing test case using the separated steps field, click Add Step (if you don’t already have any steps added) and then Import:
Choose whether you would like the shared steps to import before or after the step that already existed in your test case, and then click Import steps.
Once you’ve added a set of Shared Test Steps, you can view which cases they are used in from the Shared Test Steps list. Any changes you make to Shared Test Steps in this list will automatically appear on all of the Test Cases they are used in.