[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 )

 

posted on 2014-11-06 14:30  张缤分  阅读(1575)  评论(0)    收藏  举报

导航