}
>> > 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
; >
> >
> >
> >
> > -------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> View this message in context:
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Creat
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
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
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
]
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
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
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[
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
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
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
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
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
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
---
15 matches
Mail list logo