Templates
Note: Templates were previously called "Reusable Groups" in the UI. The functionality remains the same - only the name has changed to better reflect their purpose as reusable test patterns.
Templates allow you to save common test workflows and share them across your organization. Create them once, use them everywhere, and update them all at once.
Table of Contents
- What is a Template?
- Creating a Template
- Using a Template
- Editing a Template
- Managing Templates
- Using Templates as Hooks
- Next Steps
What is a Template?
A Template (formerly called Reusable Group) is a shared collection of test steps that can be inserted into any test case in your organization. When you update the Template, all tests using it are automatically updated.
Key Benefits:
- Define once, use everywhere - No need to recreate common workflows
- Update all tests at once - Change the template, update all tests
- Share with your team - Make your best patterns available to everyone
- Consistency - Ensure the same logic across all tests
- Cleaner tests - Collapse complex workflows into a single reference
Creating a Template
There are two ways to create a Template:
From the Templates Library
- Navigate to Templates in the sidebar
- Click New to open the template editor
- Enter a name for the Template
- Add a description (optional)
- Add steps using the step editor
- Click Create
From a Test Case
Convert an existing Group to a Template:
- Create a Group with your test steps (or select an existing one)
- Click the ... menu on the Group
- Select "Save as Template"
- Enter a name for the Template
- Click Save
The Template is now available to everyone in your organization!
Using a Template
Insert a Template into any test case:
- Click "Add a new step" where you want to insert the template
- Select "Template" from the dropdown
- Choose from the list of available Templates
- Select how you want to insert the template:
- Copy: Insert the template as an independent group.
After insertion, it becomes a regular group. Changes to the template will not affect this group, and changes made here will not update the template. - Link: Insert the template as a linked group that stays in sync with the template.
Any changes made to the steps will update the template accordingly.
- Copy: Insert the template as an independent group.
- After insertion, the template appears in the test:
- Copy appears as a regular group.
- Link appears as a linked template.
- Click to expand or collapse to view the steps inside.
Editing a Template
In the Templates Library
Edit a Template directly from the library:
- Go to Templates in the sidebar
- Find your Template in the list
- Click ..., then select Edit to open the template editor
- Update the name, description, or steps
- Click Save
If the template is used by test cases, you'll see a confirmation before saving.
Note: You cannot test templates from the library. To test your changes, use the template in a test case and run it there.
In the Test Editor
You can also edit a Template from within any test case:
- Expand the Template to see its steps
- Edit the steps as needed (add, remove, modify)
- Save your test case
⚠️Important: Changes made in either location will update the template and affect all other test cases using this Template.
Managing Templates
Navigate to Templates in the sidebar to access your organization's Templates library.
From the library you can:
- View all Templates in your organization
- See usage count for each template
- See when it was last updated and by whom
- Create, edit, or delete templates
Using Templates as Hooks
Templates can be configured as hooks to run automatically before or after your tests.
See Hooks for detailed configuration options.
Next Steps
- Learn about Hooks - Run templates automatically before/after tests
- Learn about Functions - For programmable test logic
- Explore Variables - Make your templates more flexible
- Test Editor Overview - Master the test editor