When you want to execute the same Scenario multiple times using different test data, you can combine a Data Model and a Loop node.
The Data Model defines what data will be used, and the Loop controls how many times the Units should run based on that data.
⚙️ How it works
In a Scenario:
A Data Model node is used to define the test data that will be applied during execution.
A Loop node is used to repeat specific Units multiple times.
To run a Scenario repeatedly using test data, follow these steps:
Add both a Data Model node and a Loop node to the Scenario.
Configure the Data Model node with the test data you want to use.
Set the repetition criteria in the Loop node.
Connect the Data Model node to the Loop node.
Inside the Loop settings, choose the test data from the connected Data Model as the repetition source.
When configured this way, the Loop will execute once for each row of data in the Data Model.Place the Units you want to repeat inside the Loop and connect them accordingly.
In each Unit’s Variable settings, select the Loop as the value source.
If the Loop is connected to a Data Model, it will carry one row of test data at a time.
You can map the Loop’s current values directly to the Unit’s Variables.
Comments
0 comments
Please sign in to leave a comment.