Forum Discussion
M_McDonald
16 years agoSuper Contributor
To output the headers from a Groovy script, try the following:
[tt:1npbx0hl]testRunner.testCase.getTestStepByName(TestRequestName).httpRequest.response.responseHeaders.each() { header ->
log.info header
}[/tt:1npbx0hl]
[tt:1npbx0hl]testRunner.testCase.getTestStepByName(TestRequestName).httpRequest.response.responseHeaders.each() { header ->
log.info header
}[/tt:1npbx0hl]