On 04/08/2009, sudheer reddy <[email protected]> wrote:
> Hi All
>
>   Am using jmeter for functional testing of a scenario.
>
>  I have to assign a unique number to a http request.
>
>  for this i have  associated a random variable  to create a number.
>
>  the issue now is if the number already exists in database it will not allow
>  the thread to  complete the request.
>
>  how can i check number generated using random variable exists in database?
>  and if exists  how can i add next number i mean next unique number in the
>  series  to the request which is unique in the database.
>
>  assist me in resolving this.

We had a similar requirement, and the way we solved it was to create
files of random numbers. For each test, we would use a different file.
In our case, we originally started with an empty database, so we knew
that all the files we generated were valid.

I suggest you do something similar, i.e. create files of numbers
before the test and validate them.

>  thanks in advance
>
>
>  rgds
>
>
>  Sudheer
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to