Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use duration units in doc. #3167

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ jsonpath "$.state" == "RUNNING"
GET http://api.example.org/jobs/{{job_id}}
[Options]
retry: 10 # maximum number of retry, -1 for unlimited
retry-interval: 300ms
HTTP 200
[Asserts]
jsonpath "$.state" == "COMPLETED"
Expand All @@ -159,20 +160,20 @@ skip: true
HTTP 200
```

Additionally, a `delay` can be insert between requests, to add a delay before execution of a request.
Additionally, a `delay` can be inserted between requests, to add a delay before execution of a request.

```hurl
# A 5 s delayed request
# A 5 seconds delayed request
GET https://example.org/foo
[Options]
delay: 5000
delay: 5s
HTTP 200
```

[`delay`] and [`repeat`] can also be used globally as command line options:

```shell
$ hurl --delay 500 --repeat 3 foo.hurl
$ hurl --delay 500ms --repeat 3 foo.hurl
```


Expand Down
Loading