Forum Discussion
geoffcamp
15 years agoContributor
Are you talking about reusing the Header content in from the Request or from the Response?
I'm guessing you're looking for it from the Response - if so a simple groovy script should do this for you.
For example:
def headerValue = testRunner.testCase.testSteps["Request"].testRequest.response.responseHeaders["Server"]
This will read a value from the header, in this case the Server. This can then be stored into a Property and reused in any way that you require.
Hope that helps,
Geoff
I'm guessing you're looking for it from the Response - if so a simple groovy script should do this for you.
For example:
def headerValue = testRunner.testCase.testSteps["Request"].testRequest.response.responseHeaders["Server"]
This will read a value from the header, in this case the Server. This can then be stored into a Property and reused in any way that you require.
Hope that helps,
Geoff