Perchishka
9 years agoOccasional Contributor
Groovy script for JDBS request assertion. Unexpected element: CDATA
Hello!
I just started to use SOAPUI
I have a script assertion for JDBC request:
import com.eviware.soapui.support.XmlHolder
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "JDBC Request#ResponseAsXml" )
s = holder.getNodeValue("//PS_SUBSCRIBE_DATA_290.CREATED_DATE")
log.info (s)
assert s != nullYesterday this script worked and assertion passed.
But today i see an error: Unexpected element: CDATA
Could you help me please! What is wrong?
If you renamed the test step then you need to update this line in the script
def holder = groovyUtils.getXmlHolder( "JDBC Request#ResponseAsXml" )