Forum Discussion
jsreesoap
11 years agoContributor
I found a simple way. Not sure how I missed it. I am using 'data generator' to generate random numbers. I capture them and use in my script like below:
def randomValue = context.expand( '${DataGen#RandomValue}' )
log.info "randomValue= " +randomValue
testRunner.testCase.testSuite.setPropertyValue("offerName", "PrivateOfferType-" + randomValue)
def randomValue = context.expand( '${DataGen#RandomValue}' )
log.info "randomValue= " +randomValue
testRunner.testCase.testSuite.setPropertyValue("offerName", "PrivateOfferType-" + randomValue)