Forum Discussion

koolvamshi's avatar
koolvamshi
Occasional Contributor
11 years ago

How to test the response content-type using SOAP UI

Hi Friends,

I am new to this SOAP UI .
I got a requirement to test if the response body is not empty .

Can you please tell me how to solve.

My idea was to check the content-length of the response using assertion script but it is not working for equals().
assert ((com.eviware.soapui.support.types.StringList)messageExchange.responseHeaders["Content-Length"]).contains("0")

contains is working but not equals

Please help me to solve the issue