Forum Discussion
Computer_Resear
17 years agoOccasional Contributor
You could try using groovyutils and xpath.
http://www.soapui.org/userguide/functio ... ystep.html
For example,
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context);
def holder = groovyUtils.getXmlHolder( "YOUR RESPONSE" );
def nodeValueStringArray = holder.getNodeValues("/GetMyResult/MyResult[ResultSource='ProductionSource']/ResultKey");
Loop through nodeValueStringArray and get your values for ResultKey.
Best.
http://www.soapui.org/userguide/functio ... ystep.html
For example,
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context);
def holder = groovyUtils.getXmlHolder( "YOUR RESPONSE" );
def nodeValueStringArray = holder.getNodeValues("/GetMyResult/MyResult[ResultSource='ProductionSource']/ResultKey");
Loop through nodeValueStringArray and get your values for ResultKey.
Best.