Giter VIP home page Giter VIP logo

Comments (6)

fabricereix avatar fabricereix commented on June 14, 2024 3

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.

jcamiel avatar jcamiel commented on June 14, 2024

@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.

0x61nas avatar 0x61nas commented on June 14, 2024

@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.

jcamiel avatar jcamiel commented on June 14, 2024

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.

0x61nas avatar 0x61nas commented on June 14, 2024

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.

fabricereix avatar fabricereix commented on June 14, 2024

for example, to run AAABBB synchronously

hurl --repeat 3 A
hurl --repeat 3 B

from hurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.