-
Notifications
You must be signed in to change notification settings - Fork 527
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
Feature: loop until a condition is met #207
Comments
Something like this would be great. Added a comment in #308 to describe my scenario. For me, support for an equivalent of |
Thanks for the info @joesb. Always helpful to have some real use cases in mind when adding a feature! |
Let's say you have a chat room which is full and users sometimes leave the room. You might want to loop sending a join-room event until you can finally join (someone left and the room is not full anymore). |
👍 It would be useful. |
Our case is that we'd like to make a first request that returns an array of URLs and then we want to request each of those URLs. If there is a better way please let us know, but it seems like "loop with a condition" could allow us to do that. Same thing as this: artilleryio/artillery-core#106 |
Now available in Artillery 1.6.0-9. Docs: https://artillery.io/docs/http-reference/#experimental-looping-with-custom-logic |
What about the WS engine?
… On 22 Sep 2017, at 14:09, Hassy Veldstra ***@***.***> wrote:
Now available in Artillery 1.6.0-9.
Docs: https://artillery.io/docs/http-reference/#experimental-looping-with-custom-logic
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It can be useful to loop until a condition is met.
This could be done with something like a
whileTrue
hook, which would call back withtrue
orfalse
to indicate whether the loop should continue and would have access to the fullcontext
.The text was updated successfully, but these errors were encountered: