Forum Discussion
SmartBear_Suppo
13 years agoSmartBear Alumni (Retired)
Hi,
this example is what I meant:
assert messageExchange.responseHeaders["x-amz-id-1"] != null
perhaps you could use
def headers = messageExchange.responseHeaders["<name of your response header>"]
assert headers != null && headers[0] != null && headers[0].indexOf( "<some substring>" ) != -1
!?
regards,
/Ole
SmartBear Software
this example is what I meant:
assert messageExchange.responseHeaders["x-amz-id-1"] != null
perhaps you could use
def headers = messageExchange.responseHeaders["<name of your response header>"]
assert headers != null && headers[0] != null && headers[0].indexOf( "<some substring>" ) != -1
!?
regards,
/Ole
SmartBear Software
Related Content
- 10 years ago
- 4 years ago
- 12 years ago
Recent Discussions
- 4 days ago