Forum Discussion

Kimdoengart's avatar
Kimdoengart
New Contributor
2 years ago

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 = co...
  • nmrao's avatar
    2 years ago

    Kimdoengart 

    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
    
    }