On 01/12/2008, CaHamdy <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]