Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi again!
So, the workaround would be to create a Script assertion with the following content (this example if for the sample project; just replace the XML string to suit your needs):
I have requested the soapUI team to get back to you once this bug has been fixed.
Have a nice day!
Henrik
SmartBear Stockholm
So, the workaround would be to create a Script assertion with the following content (this example if for the sample project; just replace the XML string to suit your needs):
import com.eviware.soapui.support.XmlHolder
xmlHolder = new XmlHolder( messageExchange.responseContentAsXml )
assert xmlHolder.getXml() == '''<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://www.example.org/sample/">
<soapenv:Header/>
<soapenv:Body>
<sam:loginResponse>
<sessionid>8226660973167617</sessionid>
</sam:loginResponse>
</soapenv:Body>
</soapenv:Envelope>'''
I have requested the soapUI team to get back to you once this bug has been fixed.
Have a nice day!
Henrik
SmartBear Stockholm