Forum Discussion
rlabs
16 years agoNew Contributor
You should try to use TestRunContext.HTTP_STATE_PROPERTY from Groovy Script Step, example:
(not sure how to get another headers from State)
Another way is to use messageExchange inside Script Assertion:
def state = context.getProperty( com.eviware.soapui.model.testsuite.TestRunContext.HTTP_STATE_PROPERTY )
assert state != null : "Missing HttpState.. Try to set 'Maintain HTTP session' in test case options"
def cookies = state.cookies
...
(not sure how to get another headers from State)
Another way is to use messageExchange inside Script Assertion:
String message_size = messageExchange.responseHeaders["Content-Length"]