Re: Creating Random Names or Characters

2008-12-01 Thread CaHamdy
} >> > in your sampler, wherever you need your random string. i guess you >> want to >> > use it as a parameter value. >> > >> > for more info, read >> > >> http://jakarta.apache.org/jmeter/usermanual/functions.html#__BeanShell. >> > >> > //chris >> > >> > >> > >> > >> > &g

Re: Creating Random Names or Characters

2008-12-01 Thread sebb
; > > > > > > > > > ------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > View this message in context:

Re: Creating Random Names or Characters

2008-12-01 Thread CaHamdy
> To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Creat

Re: Creating Random Names or Characters

2007-05-08 Thread chris
in your jmeter.properties file, check if you have #beanshell.function.init=BeanShellFunction.bshrc enabled. in order to use beanshell, download the jar file from http://www.beanshell.org/bsh-2.0b4.jar and put it in jmeter's lib-directory. put >> ${__BeanShell(generateRandomString(2

RE: Creating Random Names or Characters

2007-05-07 Thread Matthew Coventon
06, 2007 3:36 AM To: JMeter Users List Subject: RE: Creating Random Names or Characters Hi I don't understand how CSV Data Set can read from file with large amount of strings because it seems that you need to add variable for each string Is there a way to take next variable in file every

Re: Creating Random Names or Characters

2007-05-07 Thread mahesh kumar
Hi chris, I added the below function in BeanShellFunction.bshrc file.Please let me know how and where I have to use this function. Mahesh On 5/4/07, chris <[EMAIL PROTECTED]> wrote: in your BeanShellFunction.bshrc file, you can define following method (i use it in my testplans and it works

RE: Creating Random Names or Characters

2007-05-06 Thread David Schulberg
] consulting | development | training | support our experience makes the difference From: Ori Marco [mailto:[EMAIL PROTECTED] Sent: Sun 6/05/2007 6:36 PM To: JMeter Users List Subject: RE: Creating Random Names or Characters Hi I don't understand how CSV Data Se

RE: Creating Random Names or Characters

2007-05-06 Thread Ori Marco
ECTED] Sent: Thursday, May 03, 2007 3:37 PM To: JMeter Users List Subject: Re: Creating Random Names or Characters But if you need a lot of random strings, it would be better to create a file containing the strings and then use CSV Data Set or StringFromFile to read it. [You could use the code to c

Re: Creating Random Names or Characters

2007-05-04 Thread chris
in your BeanShellFunction.bshrc file, you can define following method (i use it in my testplans and it works perfectly): // generates a random string with length n // string consists of number, uppercase letters and lowercase letters String generateRandomString(int n) { char[] pw = new char[

Re: Creating Random Names or Characters

2007-05-03 Thread sebb
ot;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

RE: Creating Random Names or Characters

2007-05-03 Thread Matthew Coventon
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 Char

Re: Creating Random Names or Characters

2007-05-02 Thread gopal labudu
there is random function in java script which picks a random value On 5/3/07, Senthil Kumaran <[EMAIL PROTECTED]> wrote: 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

Re: Creating Random Names or Characters

2007-05-02 Thread Senthil Kumaran
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

Re: Creating Random Names or Characters

2007-05-02 Thread gopal labudu
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 n

Creating Random Names or Characters

2007-05-02 Thread Senthil Kumaran
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 ---