Template Step
Mark testcases as templates and use them as modules in other tests. Write recurring operations like login and checkout once, and use them everywhere.
What is Template Step?
Template Step runs a testcase marked as a template as a step within another testcase. This allows you to modularize common operations.
Example Use Cases
- - Login Template: Login operation that runs before every test
- - Logout Template: Logout operation after test completion
- - Navigation Template: Navigating to a specific page
- - Setup Template: Preparing test data
Template Step Dialog
Select from template list
How to Create a Template?
Create a Testcase
Create a normal testcase and add steps (e.g., Login operation).
Enable Template Toggle
Activate the Template toggle in the right panel.
Save
Once the testcase is saved, it becomes available for use as a template.
How to Add a Template Step?
Click the Template Icon
Click the green Template icon in the Add Component section.
Select a Template
Select the template you want to use from the list.
Add
The template is added as a step to the testcase and runs all its steps in sequence.
Frequently Asked Questions
What is the difference between a Template and a Testcase?
Every template is a testcase, but not every testcase is a template. Testcases with the template toggle enabled can be used as steps in other tests.
Can nested templates be used?
Yes. A template can contain another template as a step. However, avoid circular references.
What happens when a template is updated?
When a template is updated, all tests using that template automatically use the updated version.