skelkar
10 years agoContributor
Query - why two ways to create holder object ?
Hi,
I am using sopa ui PRO4.6.4 and observed that "holder" object can be created in below 2 ways -
1. import com.eviware.soapui.support.XmlHolder
def holder = new XmlHolder(messageExchange.responseContentAsXml)
2.import groovy.util.*
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "Request 1#Response" )
Now I normally use 1st option mentioned above.
But I am not sure why we have 2 different ways. What is benefic of 2nd option over 1st.?
Are there situations where 2nd option will help more?
Please advise.
Regards,
Suraj