????1.??response????????????Test Request??request???????
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "Test Request#Response" )
log.info(holder.getNodeValue("//sessionid"));
def sessionid = holder.getNodeValue("//sessionid")
return sessionid
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://www.soapui.org/sample/">
<soapenv:Header/>
<soapenv:Body>
<sam:logout>
<sessionid>${SessionId#result}</sessionid>
</sam:logout>
</soapenv:Body>
</soapenv:Envelope>
????2.?????????:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( "Test Request - logout#Response" )
def sessioninfo = holder.getNodeValue("//sessioninfo")
log.info(sessioninfo)
assert sessioninfo.equals("OK")