Kimdoengart
2 years agoNew Contributor
Get soap response content
Hi.
Is there any way to make this code snippet applie to soap and not rest.
def content = context.httpResponse.responseContent
content = content.replaceAll( "<!\\[CDATA\\[", "" )
content = content.replaceAll( "]]>", "" )
log.info( content )
context.httpResponse.responseContent = content
Yes. It is possible to find that.
I believe that the above code snippet is of script assertion of the Soap Request type test step, but not Groovy Script test step.
Here it goes:
import com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep if (context.currentStep instanceof WsdlTestRequestStep) { //Your code goes inside of this if block }