
正文
[SoapUI]怎样从应答报文中获取某个字段的值,然后用其改写某个变量
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
import com.eviware.soapui.support.GroovyUtilsdef groovyUtils = new GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "NormalUserLoginHealthTest#Response" )def ProductID = holder.getNodeValue("//authen[1]/impsn[1]/pid[1]/text()")
log.info "ProductID:"+ProductIDtestRunner.testCase.testSuite.project.setPropertyValue( "ProductID", ProductID )






