Closed danielabar closed 9 years ago
Yes, you can certainly do that by adding hooks.
There are a few built-in hooks that save and use an etag, but you can also just create functions to do whatever you want.
See this example and hopefully it will give you some ideas
https://github.com/jeffbski/bench-rest/blob/master/examples/hooks.js
First I tried defining a variable outside the flow, and populating it in the hooks, then using it in the json for the post, but that didn't work, it remained undefined.
Then got it working by populating all.requestOptions.json
in the hooks.
Thanks for your help!
excellent! I'm glad you were able to get it working.
Is it possible to make the flow actions dependent on each other? I'm trying to write a test where the output of one request is used as the input to the next request. For example: