Forum Discussion
saimie
8 years agoNew 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
Alumni
8 years agoThere is the corresponding KB article: How to get cookies in Groovy scripts?