Request and response handling using Scripts
So far, we have discussed about manipulating individual elements such as projects, test cases, and test steps of a soapUI project. However, we have not specifically looked into the different operations which can be carried out on request and response messages. soapUI provides us with a few important APIs to use with request and response messages:
com.eviware.soapui.support.GroovyUtils
: The API documentation of theGroovyUtils
class (http://www.soapui.org/apidocs/com/eviware/soapui/support/GroovyUtils.html) provides us with all the necessary information to use this API.com.eviware.soapui.support.XmlHolder
: This is a very useful API to act upon XML request and response messages. More details about the API can be found at the official API documentation (http://www.soapui.org/apidocs/com/eviware/soapui/support/XmlHolder.html)com.eviware.soapui.model.iface.MessageExchange
: This interface represents an exchange of request and response messages using...