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

Add units for duration value #2653

Open
jcamiel opened this issue Apr 9, 2024 · 0 comments
Open

Add units for duration value #2653

jcamiel opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Apr 9, 2024

Duration value is Hurl format are sometimes milliseconds, (--delay) or seconds (--max-time). It would increase the readibility of Hurl format if we could optionally specify a time unit:

Without time unit:

GET https://foo.com
[Options]
delay: 2000
max-time: 60
HTTP 200

POST https://foo.com
[Options]
retry-interval: 100
HTTP 200
[Asserts]
duration < 1000

With time unit:

GET https://foo.com
[Options]
delay: 2s
max-time: 60s
HTTP 200

POST https://foo.com
[Options]
retry-interval: 100ms
HTTP 200
[Asserts]
duration < 1s

Question: do we want to support this with command line values ?

@jcamiel jcamiel added the enhancement New feature or request label Apr 9, 2024
@fabricereix fabricereix self-assigned this Apr 9, 2024
@jcamiel jcamiel added this to the 5.0.0 milestone Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants