I created a service RESTfuland I am testing it in a project SOAPUI. In a test case, I want to check the response status codes HTTPin a groovyscript.
I tried using the following:
def value = messageExchange.responseHeaders["#status#"]
assert value==200
But it always gives an error and does not check (the test that I use returns 200 status code, but I do not know how to put groovy correctly)
Can anyone advise me. I do not want to perform an operation GETin groovy. I execute GETseparately with soapui and I just want to check the status codes.
source
share