[SoapUI]怎样从应答报文中获取某个字段的值,然后用其改写某个变量

import com.eviware.soapui.support.GroovyUtils



def groovyUtils = new GroovyUtils( context )

def holder = groovyUtils.getXmlHolder( "NormalUserLoginHealthTest#Response" )



def ProductID = holder.getNodeValue("//authen[1]/impsn[1]/pid[1]/text()")

log.info "ProductID:"+ProductID



testRunner.testCase.testSuite.project.setPropertyValue( "ProductID", ProductID )

 

你可能感兴趣的:(SOAP)