Skip to content

Delay Action

Delay Action

The Delay allows you to pause your Virtual Users. It cannot contain other actions. Delays are always filtered from the response times of their parent containers.

It has 3 modes:

  • Constant: Pauses for a fixed amount of time,
  • Random: Pauses for a random amount of time,
  • Text: Pauses for a fixed amount of time or based on a variable or function.

Warning

Text delay has no unit of time, as such it is always interpreted in milliseconds.

Usage

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 but is not shown as a distinct element in the tree.

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);