Forum Discussion

Jim_Cusack's avatar
Jim_Cusack
Contributor
11 years ago

Maximum number allowed in DataGen step

What is the maximum start, end and next value that can be used to return a number in the DataGen test step.

I tried to start with value 100010893400 and the next value resets to 100010893312 when I run the test step and then it stops incrementing the value.

Any thoughts?

3 Replies

  • Hi,

    There is a bug we are aware of (SOAP-905), beyond the range of 70000. Until a fix, I can suggest you use a DataGen property of type Script to generate random unique numbers:
    java.util.UUID.randomUUID()


    Regards,

    Giscard
    SmartBear Support
  • Do you have a solution for a sequential # that is larger than 70000?

    Regards,

    JVC.
  • Hi,

    You could use a Groovy script that will for instance get the value returned by the DataGen using property expansion, then add a constant large number to it. For example:
    def number = context.expand( '${DataGen#value}' ) as int
    def finalNum = number + 95000
    log.info "number " + finalNum
    return finalNum

    The Groovy Script step has a custom property named 'result' that will hold the computed value for further use in your test.

    Regards,

    Giscard
    SmartBear Support