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.

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.

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')

myVAR=VAR1+VAR2+VAR3;

Thanks,
With Best Regards,
Poongs.
AT&T Labs Voice Applications,
214-452-1883 (Home)
 
"Get a good idea, and stay with it. Dog it, and work at it until it's
done, and done right." - Walt Disney (1901-1966), American entrepreneur,
movie producer and showman
 
This electronic message transmission, including any attachments, may
contain information from AT&T that is proprietary and/or confidential.
All Intellectual Property in this transmission, including any
attachments is the sole property of AT&T. The information is intended to
be for the use of the individual or entity named above. If you are not
the intended recipient, be aware that any disclosure, copying,
distribution or use of the contents of this information is strictly
prohibited. If you have received this electronic transmission in error,
please immediately notify the sender and destroy all material in its
entirety, whether in electronic or hard copy format. 

-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 26, 2006 7:45 PM
To: JMeter Users List
Subject: Re: Require a mechanism to create random values across threads

On 27/02/06, Kalamegam, Poongundran (Poongs), ALABS <[EMAIL PROTECTED]>
wrote:
> Thanks Sebb.
>
> The session-id is a unique string (max length of 64 bytes)
> It's a mix of alpha numberic characters and can have - in it.
>
> To give an example, this is one of the insert statements that is sent.
>
> insert
> into
> wevscust.jcp001_host_activity_data
> (
>
call_id,called_ph_num,service_id,end_time,host_latency,host_response,hos
> t_access_error_code,error_result,host_sequence
> )
> values
> (
>
${call_id},c,${__Random(0,60,rnd_1)},(sysdate+(${__Random(0,60,rnd_sec)}
> /10000)),2,1,0,,16
> )
>
> And ${call_id} I used was
> ${__threadNum()}-${__Random(100000,99999,myR)}.
>
> This was throwing the unique constraint errors.

Why? What numbers were duplicated? All numbers, or just some? Any
pattern to the duplication? Did you try adding a number to distinguish
the thread groups?

> Any help to create a unique session-id would be greatly appreciated.
> Is there a way, we can generate a random value out of a given strings
of
> characters??

Create a file of random session ids and use CSV Data Set to read them.
If you are running 4 independent thread groups you may need to create
4 disjoint random files, or add a distinct suffix or prefix.

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


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

Reply via email to