Forum Discussion
Vipin_TV
17 years agoOccasional Contributor
Hi Ole,
Thanks for the response.
Had tried that but the transfer was shown to be putting null value.
So just tried something similar to the one given below for setting the property at a TestSuite level. But unable to find what has to be provided at the place which is marked with "???" below:
Please help me out.
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context);
def holder = groovyUtils.getXmlHolder( "YOUR RESPONSE" );
def nodeValueStringArray = holder.getNodeValues("/GetMyResult/MyResult[ResultSource='ProductionSource']/ResultKey[1]");
testRunner.testCase.testSuite.setPropertyValue( "MyResultKey", "???")
Thanks and Regards,
Vipin.
Thanks for the response.
Had tried that but the transfer was shown to be putting null value.
So just tried something similar to the one given below for setting the property at a TestSuite level. But unable to find what has to be provided at the place which is marked with "???" below:
Please help me out.

def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context);
def holder = groovyUtils.getXmlHolder( "YOUR RESPONSE" );
def nodeValueStringArray = holder.getNodeValues("/GetMyResult/MyResult[ResultSource='ProductionSource']/ResultKey[1]");
testRunner.testCase.testSuite.setPropertyValue( "MyResultKey", "???")
Thanks and Regards,
Vipin.