Forum Discussion

mbennison85's avatar
mbennison85
Occasional Contributor
6 years ago
Solved

DataGen 'number' not steping

Im trying to make a number step through for 100 times but without the manual input.

 

With the script template for 'RIDend' 

"def end = context.expand('${Van UQ - DataGen#RelationId}') as Integer
end + 100"

 

It currently does not step through at all, any idea where im going wrong?

  • Hi mbennison85,

     

    I think you have to give the Int value in both start and end you can't parameterize it.

     

    If you want to achieve this you can write below into you request directly

     

    ${=org.apache.commons.lang.RandomStringUtils.randomNumeric(5)}

     

    where 5 is the length

      

2 Replies

  • Hi mbennison85,

     

    I think you have to give the Int value in both start and end you can't parameterize it.

     

    If you want to achieve this you can write below into you request directly

     

    ${=org.apache.commons.lang.RandomStringUtils.randomNumeric(5)}

     

    where 5 is the length

      

    • mbennison85's avatar
      mbennison85
      Occasional Contributor

      Thanks, that really takes away the point of removing the human interaction of my test case. If it can't be parameterised then I cant achieve what I want.