import com.eviware.soapui.support.GroovyUtils
def groovyUtils = new GroovyUtils( context )
def holder =groovyUtils.getXmlHolder( "NormalUserLogin#Response" )
def ProductCode = holder.getNodeValue("//authen[1]/impsn[1]/pcode[1]/text()")
log.info "ProductCode:"+ProductCode
testRunner.testCase.testSuite.project.setPropertyValue( "ProductCode", ProductCode )
时间: 2024-11-06 09:10:42