-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Access to response results during loop #569
Comments
Maybe |
yes. loop |
The namespace On the other hand, if we can get a syntax that allows us to assign to an array with bind runner, we may be able to substitute it. Then we would not have to increase namespace and memory usage would be limited. runners:
req: https://api.example.com
steps:
loopStep:
loop:
count: 10
req:
/odd?num={{ i }}
get:
bind:
'loop[i]' : current.res # ?????????
referenceLoopStep:
test: |
loop[0].res.body.result == false # I want to refer to the response result of each loop from another step.
&& loop[1].res.body.result == true
&& loop[2].res.body.result == false But I can't imagine a good syntax. |
I thought the idea of being able to specify a variable with a variable name at the time of binding was very good. 👍 |
I thought the following description would be good runners:
req: https://api.example.com
steps:
loopStep:
loop:
count: 10
req:
/odd?num={{ i }}
get:
bind:
"foo[]": current.res.body.foo |
With the syntax foo[], It means to append a value, right? I think this syntax makes it difficult to support the map, how do you think? |
ref: #569 ```yaml bind: vars: "foo[i]": current.res ```
ref: #569 ```yaml bind: vars: "foo[]": current.res ```
I tried to support two syntaxes, |
Thank you! |
For example.
The text was updated successfully, but these errors were encountered: