jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CaHamdy <wayne.coli...@riskmetrics.com>
Subject Re: Creating Random Names or Characters
Date Mon, 01 Dec 2008 21:33:04 GMT

Ha.  Foolish.  Thanks for the quick reply.


sebb-2-2 wrote:
> 
> On 01/12/2008, CaHamdy <wayne.colizza@riskmetrics.com> wrote:
>>
>>  I have done the suggested steps and added the function to the bshrc
>> file, but
>>  when I put ${__BeanShell(generateRandomString(20))} as the value for a
>>  parameter in an HTTP request, it doesn't work - the parameter gets
>> listed,
>>  but its value is blank, null, "", whatever you would like to call it.
>>
>>  Is it a problem with making sure I have
>>  #beanshell.function.init=BeanShellFunction.bshrc enabled?  It exists in
>> my
>>  properties file, so I'm assuming this means that it is enabled.
> 
> # starts a comment, so it is not enabled unless you remove the leading #.
> 
>>  Thanks for any help.
>>
>>
>>
>>  hillybilly wrote:
>>  >
>>  > 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(20))}
>>  > 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
>>  >
>>  >
>>  >
>>  >
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >
>>  >
>>  >
>>
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/Creating-Random-Names-or-Characters-tp10298855p20780380.html
>>  Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Creating-Random-Names-or-Characters-tp10298855p20781019.html
Sent from the JMeter - User mailing list archive at Nabble.com.


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


Mime
View raw message