For the first case I write the following groovy script:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def response = context.expand( '${statusRequestPending#Response}' )
def holder = groovyUtils.getXmlHolder( response )
def cdata = holder.getDomNode('//outputMsg/text()').nodeValue
log.info cdata
def holder2 = groovyUtils.getXmlHolder( cdata )
def status = holder2.getDomNode('//spml:statusResponse//result=/text()').nodeValue
log.info status
if ( status == "success" )
{
log.info("SearchUser - wrong status: $status")
testRunner.fail( "status" )
}
but the status variable return "false".