All threading patterns support many iterations and you may specify some sleep interval between each iteration.
There is a way to specify not a constant, but a varying sleep interval. In this case the execution looks more real as the real users will have different idle(think) time between its interactions with the product.
All you need to do is to use the right pattern constructor. Here is an example:
loader.setThreadingPattern( new AllAtOncePattern( 1, true, 5, 2000, 6000 ) );
Here we will have 1 thread(user) running 5 iterations. The sleep interval between each iteration will vary from 2000 to 6000 milliseconds.
When you go to the Performance actions tab in Test Explorer you will see a new entry called Time between queue executions:
Back to parent page
Go to Table of Contents