Set Sleep
On this page
You can sleep after each request in milliseconds
request:
sleepAfter: 2000 # in milliseconds this is = 2 second
sleepAfter stage
sleepAfter
will sleep after stage is completed
name: Set Headers
stages:
- name: Request with Set Sleep
sleepAfter: 2000 # sleep after each stage in milliseconds
Note: if you are doing multiple request using times
, then sleep will be applied to each request
request:
times: 10 # sleep will be applied to after each request
sleepAfter: 2000 # in milliseconds this is = 2 second
Example
sleepAfter example
name: Set Sleep
stages:
- name: Request with Set Sleep
request:
url: "https://httpbin.org/get"
method: GET
sleepAfter: 2000
sleepAfter stage is completed example
name: Set Sleep
stages:
- name: Request with Set Sleep
sleepAfter: 2000
request:
url: "https://httpbin.org/get"
method: GET
Sleep after each request for 10 times example
This will sleep for 2000 millisecond after each request
name: Set Sleep
stages:
- name: Request with Set Sleep
request:
url: "https://httpbin.org/get"
method: GET
times: 10
sleepAfter: 2000