Forum Discussion
Dwango
17 years agoNew Contributor
Well, I used a Groovy script step to do this. I did as follows:
So, I gave up parsing with XPath and used the getXmlHolder().xml property as a string and searched it, since I know the value will only occur once if it exists.
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def holder = groovyUtils.getXmlHolder( "GetIds#Response" )
def holder_text = holder.xml
if (holder_text =~ 'RDV00'){
log.info( 'true' )
testRunner.gotoStepByName("CreateValue")
}
else
log.info( 'false' )
So, I gave up parsing with XPath and used the getXmlHolder().xml property as a string and searched it, since I know the value will only occur once if it exists.