I have created a RESTful
service and I am testing it in SOAPUI
project.
In a test case I want to verify the HTTP
response status codes in groovy
script.
I have tried using the following:
def value = messageExchange.responseHeaders["#status#"]
assert value==200
But it always gives the error and doesn't validates.(The test I am using does returns 200 status code, but I don't know how to put the groovy correctly)
Can anyone plz guide me. I dont want to perform GET
operation in the groovy. I am performing GET
separately using soapui and I just want to test the status codes.