mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-09-11 05:35:53 +03:00
Add delay and skip option in samples.
This commit is contained in:
parent
1e5aa19ba1
commit
0b5c164612
@ -640,6 +640,7 @@ GET https://example.org
|
||||
aws-sigv4: aws:amz:sts # generate AWS SigV4 Authorization header
|
||||
cacert: /etc/cert.pem # custom certificate file
|
||||
compressed: true # request a compressed response
|
||||
delay: 3000 # delay in ms for this request
|
||||
http3: true # use HTTP/3 protocol version
|
||||
insecure: true # allow insecure SSL connections and transfers
|
||||
ipv6: true # use IPv6 addresses
|
||||
@ -647,6 +648,7 @@ location: true # follow redirection for this request
|
||||
max-redirs: 10 # maximum number of redirections
|
||||
output: out.html # dump the response to this file
|
||||
path-as-is: true # do not handle sequences of /../ or /./ in URL path
|
||||
skip: false # skip this request
|
||||
unix-socket: sock # use Unix socket for transfer
|
||||
variable: country=Italy # define variable country
|
||||
variable: planet=Earth # define variable planet
|
||||
|
@ -434,6 +434,40 @@ jsonpath "$.state" == "COMPLETED"
|
||||
|
||||
[Doc](/docs/entry.md#retry)
|
||||
|
||||
### Delaying Requests
|
||||
|
||||
Add delay for every request, or a particular requests:
|
||||
|
||||
```hurl
|
||||
# Delaying this request by 5s
|
||||
GET https://example.org/turtle
|
||||
[Options]
|
||||
delay: 5000
|
||||
HTTP 200
|
||||
|
||||
# No delay!
|
||||
GET https://example.org/turtle
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
[Doc](/docs/manual.md#delay)
|
||||
|
||||
### Skipping Requests
|
||||
|
||||
```hurl
|
||||
# a, b, d are runner, c is skipped
|
||||
GET https://example.org/a
|
||||
|
||||
GET https://example.org/b
|
||||
[Options]
|
||||
skip: true
|
||||
|
||||
GET https://example.org/c
|
||||
|
||||
GET https://example.org/d
|
||||
```
|
||||
|
||||
[Doc](/docs/manual.md#skip)
|
||||
|
||||
|
||||
### Testing Endpoint Performance
|
||||
|
Loading…
Reference in New Issue
Block a user