Forum Discussion
JKambli
9 years agoStaff
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}
- manikuma39 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
- 6 years ago
- 9 years ago
- 6 years ago
- 6 years ago