I am trying to setup authentication for a context that I will use in the automation framework. The flow is something like this
- hit the 1st endpoint with username/password
- response contains a header, for example header: value
- hit 2nd endpoint with "header: value" in request header
I hope that makes sense. I think Zest assignment to a variable will work, but I am not sure HEAD and BODY refer to request or response.
Also, I don't understand how to use the variable in the next request (tried a random string using {%variable%} but that didn't work). Thanks.