我正在尝试使用 groovy 获取soapUI中结果节点的数量,下面的代码给了我正确的数量
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
def holder = groovyUtils.getXmlHolder("StepName#ResponseAsXml")
def cnt = holder["count(//Results/ResultSet/Row)"]
但是当我尝试下面的方法时,我得到了 1 的计数。两者有什么不同?
def cnt = holder["count('//Results/ResultSet/Row')"]