anand1 :
You can implement the workaround for this by writing your custom groovy code to generate random number/string and saving the numbers/string to Properties step and using those in your request. Below is the Function which i have created to generate Random String/Numeric/AlphaNumeric, you can use that too:
def num = generateRndString(10, "numeric");
log.info num
def str = generateRndString(10, "string");
log.info str
def alphaNum = generateRndString(10, "alphanumeric");
log.info alphaNum
testRunner.testCase.getTestStepByName("Properties").setPropertyValue("RndNum", num)
testRunner.testCase.getTestStepByName("Properties").setPropertyValue("RndString", str)
testRunner.testCase.getTestStepByName("Properties").setPropertyValue("RndAlpha", alphaNum)
def generateRndString(int num, String type){
def randValue = "";
if( type.equalsIgnoreCase("numeric") ){
def alphaNumeric = ('0'..'9').join()
randValue = RandomStringUtils.random(num, alphaNumeric)
while (randValue.size()!=num)
{
randValue = RandomStringUtils.random(num, alphaNumeric)
}
}
else if( type.equalsIgnoreCase("string") ){
def alphaNumeric = (('a'..'z')+('A'..'Z')).join()
randValue = RandomStringUtils.random(num, alphaNumeric)
while (randValue.size()!=num)
{
randValue = RandomStringUtils.random(num, alphaNumeric)
}
}
else if( type.equalsIgnoreCase("alphanumeric") ){
def alphaNumeric = (('0'..'9')+('a'..'z')+('A'..'Z')).join()
randValue = RandomStringUtils.random(num, alphaNumeric)
while (randValue.size()!=num)
{
randValue = RandomStringUtils.random(num, alphaNumeric)
}
}
return randValue
}