Comments (6)
I also quite prefer to have only one repeat to make it simpler.
Choosing the following repeat ABABAB which seems the most common in programming.
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.
from hurl.
@fabricereix we could use two options --repeat
to repeat a file and --repeat-all
to repeat a list of file:
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
from hurl.
@jcamiel I didn't get the difference between the --repeat
and --repeat-all
options, from looking at the provided examples, seams like they just repeat all provided files to me (a.k.a. they are the same)
from hurl.
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 --repeat
from hurl.
aha, reasonable somehow, but the options names made me confused
It maybe not worth it to make two options, we'll chose a mode and one "mode" and do only one option --repeat
I think we should have one option --repeat
with only one default "mode", and then we can have another different option to just modify the repeat mode.
this will help us to eliminate the confusion, and it'll help us to add more "modes" like random
or power-set
(all the possible combinations)
from hurl.
for example, to run AAABBB synchronously
hurl --repeat 3 A
hurl --repeat 3 B
from hurl.
Related Issues (20)
- Inconsistent naming case using `--json` HOT 3
- Authorization header are sent with redirection when using --user
- Replace warning by error for an output failure in [Options] section
- Do not filter 'Authorization' header if host doesn't change while following redirection
- Add --allow-read/--allow-write security options and deprecate --file-root HOT 2
- Global requests count HOT 4
- Semantic JSON assertion HOT 5
- JSON parser rejects valid JSON with empty keys in objects HOT 1
- Misleading error message using != (not equal) operator HOT 4
- Generate junit report directory structure too (mkdir -p) HOT 4
- Installer is identified as containing virus by Microsoft Defender HOT 3
- Custom options section to avoid polluting the headers HOT 3
- Generate tap report directory structure too (mkdir -p)
- Crash when capturing 'Expires' cookie attribute
- Crash with `--json` option when capturing 'HttpOnly' and 'Secure' cookie attribute
- Equality on date not respected
- Typo in "issuer" field when exporting SSL certificates to JSON
- Normalise SSL certificate's issuer and subject
- Output is truncated when using --json and --output together HOT 1
- SPlit HTML/JUNIT report into test cases HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hurl.