Unanswered question

Scenario Setup - Need iterations to stop at the end of the user path

I have a system I want to test that uses unique users for each user path iteration. The data variable is working just fine BUT once it hits the end of the iteration for the first 10 users it starts them over and causes an issue. These users can only be used once, based on name, DOB, and SSN. I need the iterations for stop once they get to the end for each user BUT I also want to control the load increment and frequency

Duration Policy: By Time - 10 min
Load Variation Policy: Ramp Up
Initial user Number: 10
Increment by: 10
Every 1 min

The user path will take about 13 min to complete BUT I have set the Stop Policy to Indeterminate: allow all virtual users to end their current iterations and go to their End containers. This causes the full Runtime to take about 30 min. Which I'm fine with.

Andrew P.
Andrew P.

Andrew P.

Level
0
13 / 100
points

Answers

If you would like to control the number of iterations the best is to run your test with duration policy by iteration and not by time otherwise the users will continue to iterate the Actions till the end of the test.

Also if you use a login variable you could configure it to stop the test when it runs out of values.

Sulav B.
Sulav B.

Sulav B.

Level
0
45 / 100
points

Please run the test with duration policy 'By iteration' and set the data variable scope to 'Unique' and when out of values to 'Stop the test; . This will guarantee that for each iteration the data source is unique and will stop the test when all the test data is exhausted.