Forum Discussion
Konda_R
16 years agoOccasional Contributor
Hi
You could also use script assertion test step to assert HTTP response header values.
I see this feature is avaiable in soapUI Pro3.0.1 [Don't Know about other soapUI editions]
The syntax is : messageExchange.responseHeaders["HeaderName"]
For Example:
//check that Content-Length http resposne header has appropriate value
def value = messageExchange.responseHeaders["Content-Length"]
assert(Integer.parseInt(value)>=3322000)
Let me know if this resolves.
Thanks
Kondareddy
You could also use script assertion test step to assert HTTP response header values.
I see this feature is avaiable in soapUI Pro3.0.1 [Don't Know about other soapUI editions]
The syntax is : messageExchange.responseHeaders["HeaderName"]
For Example:
//check that Content-Length http resposne header has appropriate value
def value = messageExchange.responseHeaders["Content-Length"]
assert(Integer.parseInt(value)>=3322000)
Let me know if this resolves.
Thanks
Kondareddy