Forum Discussion

ksrohit38's avatar
13 years ago

How to increment a parameter value by 1 for each request

Hi ,

I'm new to SOAP UI and i need to perform a load test. As of my requirement i have a mobile number parameter in the XML file. I need to perform load test ( ex: say some 50000 requests ) and for each request the mobile number value must be incremented so that i'l get a successful response for all the cases. Need your help as soon as possible.

Thanks.

1 Reply

  • HammerTime's avatar
    HammerTime
    Occasional Contributor
    Try this......set up a project property, so that it's value is a random number generator e.g

    mobileNo = ${=(int)(Math.random()*10000000)

    and then set the the parameter in the xml to this project property i.e

    ${#Project#mobileNo}