Reuse Steps and Scenarios
Reusing steps or scenarios helps reduce duplication, improve consistency, and simplify maintenance as your tests evolve. In BlinqIO, you can reuse steps in two ways:
Automatic Step Reuse Suggestions
When you perform an action that matches a previously recorded step, the AI Recorder automatically checks for existing steps with a similar pattern.
Perform an action during recording.
If the beginning of your action resembles an existing step, the Recorder prompts you with a reuse suggestion.
Click Use existing step to insert the original implementation instead of creating a duplicate.
Manually Reuse Steps
If you already know which steps to reuse or want to avoid re-performing a long sequence, you can manually insert existing steps from the Recorder.
Open the AI Recorder and begin editing your scenario.
In Recording Mode, click the Reuse steps/scenarios icon.
In the existing steps panel:
Previously recorded steps are listed.
Steps relevant to the current screen appear at the top and are marked with a ⭐.
Use the search bar to locate specific steps, if needed.
Select the step(s) you want to reuse.
Choose one of the following options from the dropdown:
- Add and Run Step (default): Adds the step to your scenario and runs it immediately.
- Add Step: Adds the step without executing it.
- Run Step: Executes the step without adding it to your scenario.
If the step has parameters, enter the required values when prompted.
The selected step runs (if applicable) and may be added to your current test.
NOTE
After reusing steps or scenarios, remember to Generate Code and Save your test to keep your changes.
Manually Reuse Entire Scenario
The AI Recorder currently supports running a previously created scenario from another test. This scenario is executed but not added to the current test.
NOTE
This feature is a work in progress and will be enhanced to support fully reusing and adding scenarios to tests.
Advanced: Reuse Steps by Creating New BDD Scenarios
If you already know which steps exist and want to reuse them quickly, you can create a new BDD scenario directly in the Features page and paste the required steps.
NOTE
This is a faster approach for advanced users who are confident about which steps are already implemented.
Go to the Features page and open the scenario that contains the step(s) you want to reuse.
Copy the relevant step(s).
NOTE
To reuse an entire scenario, select and copy all its steps.
Create a new scenario or open the target scenario and click Edit.
Paste the copied step(s) into the Gherkin editor and click Save scenario.
If the step already exists in the same project, a green check mark appears next to it.
If the step is from a different project, you'll need to generate automation for it.
TIP
See Generate Automation Code for Gherkin Steps for instructions.
Extend with Recording
To continue building this scenario using the AI Recorder:
Open the newly created scenario and click Edit Recording.
Click Run Until This Step on the last reused step to execute all steps up to that point.
Begin interacting with your application to record new steps after the reused ones.
This approach combines the speed of manual reuse with the flexibility of recording, making it ideal for users familiar with both the Gherkin editor and Recorder flow.