You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Larry Williams <lw...@TridentSeafoods.com> on 2012/08/28 15:58:30 UTC

Generate a random unique ID with Jmeter

Hi all,

Does anyone know how to get Jmeter to generate a unique ID?
Thanks in advance!

Larry Williams
Sr CNC Admin * Information Services Department
lwilliams@tridentseafoods.com<ma...@tridentseafoods.com> * 206-297-5766
Mobile:  206-409-9337
5303 Shilshole Ave. N.W. * Seattle, WA 98107-4000


________________________________

CONFIDENTIALITY NOTICE
The information in this message is intended only for the addressee or the addressee's authorized agent. The message may contain information that is privileged, confidential, or otherwise exempt from disclosure. If the reader of this message is not the intended recipient or the recipient's authorized agent, then you are notified that any dissemination, distribution or copying of this message is prohibited. If you have received this message in error, please reply to the sender and then delete the message.

Re: Generate a random unique ID with Jmeter

Posted by Stephen Ash <st...@gmail.com>.
That is exactly what I use.

${__BeanShell(UUID.randomUUID().toString())}

On Tue, Aug 28, 2012 at 9:21 AM, Deepak Shetty <sh...@gmail.com> wrote:
> if you can do it in Java you can call it from Jmeter
> e.g. http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html
>
> regards
> deepak
>
> On Tue, Aug 28, 2012 at 6:58 AM, Larry Williams <
> lwilliams@tridentseafoods.com> wrote:
>
>> Hi all,
>>
>> Does anyone know how to get Jmeter to generate a unique ID?
>> Thanks in advance!
>>
>> Larry Williams
>> Sr CNC Admin * Information Services Department
>> lwilliams@tridentseafoods.com<ma...@tridentseafoods.com> *
>> 206-297-5766
>> Mobile:  206-409-9337
>> 5303 Shilshole Ave. N.W. * Seattle, WA 98107-4000
>>
>>
>> ________________________________
>>
>> CONFIDENTIALITY NOTICE
>> The information in this message is intended only for the addressee or the
>> addressee's authorized agent. The message may contain information that is
>> privileged, confidential, or otherwise exempt from disclosure. If the
>> reader of this message is not the intended recipient or the recipient's
>> authorized agent, then you are notified that any dissemination,
>> distribution or copying of this message is prohibited. If you have received
>> this message in error, please reply to the sender and then delete the
>> message.
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Generate a random unique ID with Jmeter

Posted by Deepak Shetty <sh...@gmail.com>.
if you can do it in Java you can call it from Jmeter
e.g. http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html

regards
deepak

On Tue, Aug 28, 2012 at 6:58 AM, Larry Williams <
lwilliams@tridentseafoods.com> wrote:

> Hi all,
>
> Does anyone know how to get Jmeter to generate a unique ID?
> Thanks in advance!
>
> Larry Williams
> Sr CNC Admin * Information Services Department
> lwilliams@tridentseafoods.com<ma...@tridentseafoods.com> *
> 206-297-5766
> Mobile:  206-409-9337
> 5303 Shilshole Ave. N.W. * Seattle, WA 98107-4000
>
>
> ________________________________
>
> CONFIDENTIALITY NOTICE
> The information in this message is intended only for the addressee or the
> addressee's authorized agent. The message may contain information that is
> privileged, confidential, or otherwise exempt from disclosure. If the
> reader of this message is not the intended recipient or the recipient's
> authorized agent, then you are notified that any dissemination,
> distribution or copying of this message is prohibited. If you have received
> this message in error, please reply to the sender and then delete the
> message.
>

Re: Generate a random unique ID with Jmeter

Posted by sebb <se...@gmail.com>.
On 28 August 2012 14:58, Larry Williams <lw...@tridentseafoods.com> wrote:
> Hi all,
>
> Does anyone know how to get Jmeter to generate a unique ID?

What do you mean by unique?
Unique to a host?
Unique within a test run?
Within a suite of tests?
Globally unique?

What restrictions are placed on the format of the ID?

You might find that the time + some other chars will do.

http://jmeter.apache.org/usermanual/functions.html#__time

> Thanks in advance!
>
> Larry Williams
> Sr CNC Admin * Information Services Department
> lwilliams@tridentseafoods.com<ma...@tridentseafoods.com> * 206-297-5766
> Mobile:  206-409-9337
> 5303 Shilshole Ave. N.W. * Seattle, WA 98107-4000
>
>
> ________________________________
>
> CONFIDENTIALITY NOTICE
> The information in this message is intended only for the addressee or the addressee's authorized agent. The message may contain information that is privileged, confidential, or otherwise exempt from disclosure. If the reader of this message is not the intended recipient or the recipient's authorized agent, then you are notified that any dissemination, distribution or copying of this message is prohibited. If you have received this message in error, please reply to the sender and then delete the message.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org