Using Shared Steps in Test Cases
1 min read
Shared steps are used inside repository test cases. They let teams add a reusable set of step rows without copying the same descriptions and expected outputs by hand.
Open Insert Shared Step
Section titled “Open Insert Shared Step”While creating or editing a repository test case, use the shared-step action in the steps area to open Insert Shared Step.
The window lets you choose from available shared steps for the current project area.
Search and Select
Section titled “Search and Select”Use Select a Shared Step to search and choose a shared step. If no shared steps are available, Hawzu shows No shared steps.
After you select a shared step, Hawzu shows a preview of its step rows.
Preview Before Adding
Section titled “Preview Before Adding”The preview shows:
- Step number
- Step Description
- Expected output
If the shared step has no rows, the preview shows No steps added.
Parameters in the preview resolve through the available parameter list, so reviewers can understand the content before adding it.
Add to the Test Case
Section titled “Add to the Test Case”Select Add Shared Step to insert the selected shared step into the test case. The button is disabled until a shared step is selected.
Select Cancel to close the window without adding anything.
Linked Behavior
Section titled “Linked Behavior”Inserted shared steps remain linked blocks inside the test case. When the shared step is updated from the Shared Steps page, linked test cases can reflect the updated shared content.
Use this for flows that should stay consistent across several test cases.
Editing Test Cases With Shared Steps
Section titled “Editing Test Cases With Shared Steps”Shared steps can sit alongside regular test-case steps. Use regular steps for test-specific content and shared steps for repeated flows.
Preconditions are managed separately and do not use shared steps.