Forum Discussion
JKambli
Staff
You can save the cookie in a testcase property and pass it next request,
If the token is in header,
You can capture the response headers with a groovy script and then save them in a testCase property,
def value = testRunner.testCase.testSteps["Request"].testRequest.response.responseHeaders["Set-Cookie"]
testRunner.testCase.setPropertyValue("token",value )
Here is the expansion ${#TestCase#token}
manikuma3
8 years agoNew Contributor
Hi,
Thanks for quick response. My problem is that I cannot set Follow Redirects option to false and I could not find a way to capture the cookie from the response header of the intermediate calls.
Thanks,
Manish
Related Content
- 5 years agokakabubu
- 9 years agoArnorBld
- 6 years agoBTscott
- 6 years agoAndyTGardner
Recent Discussions
- 4 days agominhng