Sometimes when tests execute multiple iterations, it is desirable to request a page only once (in the beginning or at the end) to perform initial or final actions. For instance, in a test case, a user logs in, performs some actions, and logs out. During the test run, you want every VU to login only on the first iteration and logout only on the last iteration, while other pages should be repeated multiple times.
The table below shows how to use this property.
|When to Request the Page|
|On All iterations||(Default) The page or transaction and all its requests will be sent in all VU's iterations.|
|On 1-st iteration||The page or transaction and all its requests will be sent only in the first iteration. This is used for a log-in type page.|
|On Last iteration||The page or transaction and all its requests will be sent only in the last iteration. This is used for a log-out type page.|
|Disabled||The page or transaction is disabled, and all its requests will not be sent.|
- If you are running the log-out process on the last iteration only (as in the example above) and your test completion condition is not Number of iterations, then you must set After the completion condition is reached property to Wait for iterations to complete. For more see Run duration