Forum Discussion
saimie
New Contributor
Hi - the script below is incorrect. You will need to run the following script for specific response headers:
def headerValue = testRunner.testCase.testSteps["Test_Step_Name"].testRequest.response.responseHeaders["Set-Cookie"] log.info(headerValue)
Thanks,
Sam
Nastya_Khovrina
7 years agoSmartBear Alumni (Retired)
There is the corresponding KB article: How to get cookies in Groovy scripts?
Related Content
- 10 years ago
- 6 years ago
- 9 years ago
Recent Discussions
- 22 days ago