How to Aggregate multiple DataSource rows to the same request ?
SoapUI FAQ
(Continued from previous question...)
How to Aggregate multiple DataSource rows to the same request ?
Datasource elements to a property, and then use the property after exiting the loop.
1.def countryCode = context.expand( '${DataSource#CountryCode}' )
2.def countryName = context.expand( '${DataSource#CountryName}' )
3.
4.def frag = context.expand( '${Properties#XmlFragment}' )
5.
6.def newPropertyValue = '${frag}${countryCode}${countryName}'
7.testRunner.testCase.setPropertyValue( 'XmlFragment', newPropertyValue )
(Continued on next question...)
Other Interview Questions
|