On 27/02/06, Kalamegam, Poongundran (Poongs), ALABS <[EMAIL PROTECTED]> wrote:
> JMETER-3-8466792
> JMETER-3-8466792
>
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
> JMETER-3-8466792
>
> For several thread instances, it is creating same call_id and this
> throwing the unique constraint issue.

Are you using multiple invocations of Random() ?

Truly random generators will occasionally generate duplicates, but I
assume Math.random() - which is used by the __Random() function - will
only do so when the pseudo-random sequence restarts.

> For using the CSV Read, u mean to say I write a program to generate the
> random call_ids and put it up in a file and use them with thread groups.

Yes.

You can get files of good random data from the internet if you search
around, or you can generate them yourself.

> Also, is it possible to create a variable of sort
>
> VAR1 = Random ('0',
> '1','2','3','4','5','6','7','8','9','A','B','C','D','E','F')
> VAR2 = Random ('0',
> '1','2','3','4','5','6','7','8','9','A','B','C','D','E','F')
> VAR3 = Random ('0',
> '1','2','3','4','5','6','7','8','9','A','B','C','D','E','F')

Not with the standard functions, but you could write a BeanShell
function to do this.

> myVAR=VAR1+VAR2+VAR3;

Do you mean string concatenation here? Or arithmetical sum?

Both are possible.

I just noticed that you wrote:

>And ${call_id} I used was
>${__threadNum()}-${__Random(100000,99999,myR)}.

This is an invalid call, because 99999 is less than 100000.

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to