mkaplan
11 years agoOccasional Contributor
Groovy: Unexpected element: CDATA
Hi everyone,
I have a test request response and I'm trying to get a value from it using a groovy test step. I have said groovy step in a testsuite that goes through each step in order and it works perfectly. I also have a test suite where all test steps are ran from a groovy script. When I run the groovy test step to get the value from the response, I get "org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA".
It says the error is at line 3:
Why does the groovy test step fail when it's ran through another groovy test step?
Thanks,
Michael
I have a test request response and I'm trying to get a value from it using a groovy test step. I have said groovy step in a testsuite that goes through each step in order and it works perfectly. I also have a test suite where all test steps are ran from a groovy script. When I run the groovy test step to get the value from the response, I get "org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA".
It says the error is at line 3:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def response = context.expand('${initiateTransaction#Response}')
def holder = groovyUtils.getXmlHolder("response")
Why does the groovy test step fail when it's ran through another groovy test step?
Thanks,
Michael