Adding a loop to a test
You can define part of a test as a loop that runs a specified number of times. If the loop contains a synchronization point, the synchronization point is released after the first iteration of the loop and stays released for all further iterations.
| Loop location | Results |
|---|---|
Schedule |
Loops in schedules are easy to locate and modify.Loops in schedules close the server connection at the end of each iteration and reopen it at the beginning of the next iteration. This action models the behavior of a user closing and reopening a browser. Use this method to run a test at a set rate. |
| Test | Loops in tests can be more granular, and thus
provide a higher level of control. Loops in tests reuse the server connection during each loop iteration. Use this method, with loops that have high iteration counts, to stress test a server. |