-
Notifications
You must be signed in to change notification settings - Fork 472
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 --repeat option to repeat a sequence of Hurl file (and requests) #2680
Comments
@fabricereix we could use two options With one file: $ hurl --repeat 3 a.hurl
a.hurl a.hurl a.hurl $ hurl --repeat-all 3 a.hurl
a.hurl a.hurl a.hurl With two files: $ hurl --repeat 3 a.hurl b.hurl
a.hurl a.hurl a.hurl b.hurl b.hurl b.hurl $ hurl --repeat-all 3 a.hurl b.hurl
a.hurl b.hurl a.hurl b.hurl a.hurl b.hurl Combined: $ hurl --repeat 2 --repeat-all 3 a.hurl b.hurl
a.hurl a.hurl b.hurl b.hurl a.hurl a.hurl b.hurl b.hurl a.hurl a.hurl b.hurl b.hurl |
@jcamiel I didn't get the difference between the |
When you've two files A and B, if you want to repeat 3 times these two files what is the sequence: A B A B A B Or A A A B B B It maybe not worth it to make two options, we'll chose a mode and one "mode" and do only one option |
aha, reasonable somehow, but the options names made me confused
I think we should have one option this will help us to eliminate the confusion, |
I also quite prefer to have only one repeat to make it simpler. For example, in Python >>> from itertools import repeat
>>> files = ['A', 'B']
>>> list(repeat(files, 3))
[['A', 'B'], ['A', 'B'], ['A', 'B']] Leaving other custom repeat (such as AAABBB) to a script calling Hurl, at least for the time-being. |
for example, to run AAABBB synchronously
|
When running
a.hurl
b.hurl
c.hurl
:Will run
a.hurl
b.hurl
c.hurl
a.hurl
b.hurl
c.hurl
In an
[Options]
section:Will run https://foo.com, https://bar.com, https://bar.com, https://baz.com
To discuss: --repeat-mode
We could add a cli only option
--repeat-mode
that takes two values:--repeat-mode=abab
(default) or--repeat-mode=aabb
=>
a.hurl
b.hurl
c.hurl
a.hurl
b.hurl
c.hurl
=>
a.hurl
a.hurl
b.hurl
b.hurl
c.hurl
c.hurl
The text was updated successfully, but these errors were encountered: