Forum Discussion
Daniel-yip
17 years agoOccasional Contributor
Thanks....
I copy the following script and the copy to groovy script for testing. A Lot of error was display.
context.randomValue = 5 + 5*Math.random()
def props = testRunner.testCase.getTestStepByName("Properties");
props.setPropertyValue("randomValue", ${randomValue});
How can I generate the the random value and transfer to property?
I copy the following script and the copy to groovy script for testing. A Lot of error was display.
context.randomValue = 5 + 5*Math.random()
def props = testRunner.testCase.getTestStepByName("Properties");
props.setPropertyValue("randomValue", ${randomValue});
How can I generate the the random value and transfer to property?
Related Content
Recent Discussions
- 3 days agoemoya
- 3 days agoMyBalanceNow