Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 34542 invoked from network); 1 Dec 2008 20:58:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 20:58:40 -0000 Received: (qmail 34003 invoked by uid 500); 1 Dec 2008 20:58:46 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 33976 invoked by uid 500); 1 Dec 2008 20:58:46 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 33965 invoked by uid 99); 1 Dec 2008 20:58:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 12:58:45 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 20:57:15 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1L7FqE-0002bK-9Y for jmeter-user@jakarta.apache.org; Mon, 01 Dec 2008 12:58:02 -0800 Message-ID: <20780380.post@talk.nabble.com> Date: Mon, 1 Dec 2008 12:58:02 -0800 (PST) From: CaHamdy To: jmeter-user@jakarta.apache.org Subject: Re: Creating Random Names or Characters In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: wayne.colizza@riskmetrics.com References: <463965A1.6040308@proaxiom.co.nz> <9da6dd080705070302o7e44a172l6baea67df7f80881@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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. 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