Forum Discussion
joelgluth
17 years agoContributor
It's not perfect, but this is one way:
Then in the Ruby bit:
[edit: http://www.soapui.org/userguide/properties.html ]
You can probably be a lot neater than this, though.
<tem:Type>ID</tem:Type>
<tem:Value>${#TestCase#thingValue}</tem:Value>
Then in the Ruby bit:
testRunner.testCase.setPropertyValue('thingValue', idnos[(rand.nextInt(3))].toString());
[edit: http://www.soapui.org/userguide/properties.html ]
You can probably be a lot neater than this, though.