Here is a link to some java code that generates random strings:
http://www.koders.com/java/fid469723E78254774BEC5E0E17D580B2DA38BA3658.aspx.

With a little modification, you could use it in a Beanshell Preprocessor to
generate a random string.  In the beanshell you would put the string in a
variable using vars.put("myString", randomString).

Then you can use ${myString} in your sampler.

Regards,

Matt C.

-----Original Message-----
From: Senthil Kumaran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 03, 2007 12:40 AM
To: JMeter Users List
Subject: Re: Creating Random Names or Characters

Hi,
Thanks for the response,
I want  create random dynamic string  in the name field of the web 
application in the  registeration form.
For eg:
      _ random function is used to create random numbers.
Is there any javascript function or any other function to perform  it.

Thanks
Senthil


gopal labudu wrote:

> we can send string or characters by using parameterization
> we have to use ${_StringFromFile(name)} function.
>
>
>
>
> On 5/3/07, Senthil Kumaran <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
>> I am trying to create a random string or  character in the name field of
>> the web application.
>> So that i can create dynamic names to post the http request.
>> Is it possible to create a random string or characters in jmeter.
>>
>> Thanks and Regards,
>> Senthil
>>
>>
>> ---------------------------------------------------------------------
>> 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]




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

Reply via email to