Skip to content

Delay Action

Delay Action

The Delay allows you to pause your Virtual Users. It does not contain other actions. The Virtual User progress is delayed when it encounters this action for duration units. Delays are filtered from the response times of their parent containers.

A common use of delays is in combination with a loop to refresh a page every XX seconds. Also using one at the end of a virtual user is a good way to have a delay between iterations.

Info

HTTP Actions have a think time. It has the same purpose as the Delay Action. Its value is set when you record a Virtual User based on timestamps between requests. Please refer to the HTTP Action think time documentation to configure a Delay Action.

Delay & response time

Delays won't be part of the response time measured in your containers, so they won't appear in your report. If you need that delay to be part of your container's response time, instead of a delay you should use a JSR223 script :

Thread Sleep

Thread.sleep(9000);
Thread.sleep(9000);