You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to pass data between chained APIEasy calls. This only works for outgoing headers. However, passing state to modify post request body of subsequent calls does not work. It appears that APIEasy is caching the post data to be sent at initialization and instead of late binding
Inspecting the source, it should work if you just do .post(url) instead of .post(url, data). Passing in a (currently-empty) data object will override the one set in your before:
I really wish I understood this answer, it would help me a lot. However, the first link is now broken. And, the second response says "set the body in the before" which I don't understand... doesn't that mean the code would run before every test in the suite, when all he's trying to do is chain 2 calls?
I was hoping the fluent nature of this library would make it easy to chain calls that depend on each other, but now I'm suspecting I misunderstood the benefits of this fluency.
Unable to pass data between chained APIEasy calls. This only works for outgoing headers. However, passing state to modify post request body of subsequent calls does not work. It appears that APIEasy is caching the post data to be sent at initialization and instead of late binding
Here is a gist with my use case
Failing use case
The text was updated successfully, but these errors were encountered: