Hi rsubroto ,
the Property Transfer does not support copying HTTP headers.
You can insert a Groovy Script test step and use the following Groovy script to copy the value of an HTTP header into a TestCase property:
headerName = "theHeaderName"
headerValue = ""
testStepName = "theTestStepWithResponseName"
headers = context.testCase.getTestStepByName(testStepName).testRequest.response.responseHeaders[headerName]
if (headers != null && headers.size() > 0) {
headerValue = headers[0]
}
assert headerValue != "" : "The HTTP header missing in the response of " + testStepName
context.testCase.setPropertyValue(headerName, headerValue)
You need to set the variables:
The assertion ensures that the Groovy Script test step fails if the response does not contain the expected HTTP header.
Best regards,
Karel