Re: Bean Shell Preprocessor query

2011-09-23 Thread Bruce Ide
Heh, I'm a programmer. I have to admit though, that I very rarely check my return value for null after vars.get. I figure if my BSF sampler fails with a null pointer exception, I should know what's going on. Using "" + for string conversion is probably a little less efficient than Long.toString(var

Re: Bean Shell Preprocessor query

2011-09-23 Thread ZK
Yes you are correct! ;) However my mindset is to FORCE it to be string (even though it already is) belt and braces :) I'm an atheist ZK -- View this message in context: http://jmeter.512774.n5.nabble.com/Bean-Shell-Preprocessor-query-tp4831233p4832808.html Sent from the JMeter - User ma

Re: Bean Shell Preprocessor query

2011-09-23 Thread Bruce Ide
You don't need to use ""+ to convert bshFoo into a String! It's already a String! And using ""+ to convert something to a String is the wrong way to do that, anyway! God! ;-) -- Bruce Ide flyingrhenqu...@gmail.com

Re: Bean Shell Preprocessor query

2011-09-23 Thread ZK
bshFoo = (vars.get("Foo")); bshFoo = "Four"; vars.put("Foo", ""+bshFoo); ZK -- View this message in context: http://jmeter.512774.n5.nabble.com/Bean-Shell-Preprocessor-query-tp4831233p4832617.html Sent from the JMeter -

Re: Reg: Bean Shell Pre processor and Post Processors

2011-09-06 Thread Shmuel Krakower
sually means you have to compare every request that the browser sends > which > what your Jmeter script is sending /receiving (using View Results Tree > ).Common causes are > a. You aren't using a cookie manager > b. You aren't sending dynamic data correctly. > > >2. Al

Re: Reg: Bean Shell Pre processor and Post Processors

2011-09-05 Thread Deepak Shetty
dynamic data correctly. >2. Also if there is solution with Bean shell pre/post-processor for this then kindly help me in understanding - how to apply and Use Bean Shell scripts in this situation. Doesn't look like you need Bean Shell for this scenario. It or any other scripting language is

Reg: Bean Shell Pre processor and Post Processors

2011-09-05 Thread Nisha G.
2. Also if there is solution with Bean shell pre/post-processor for this then kindly help me in understanding - how to apply and Use Bean Shell scripts in this situation. (I never used this Bean shell scripting as I am new to this scripting language) Please help me out in this. Your advise and h

Re: Bean shell Preprocessor Exception

2011-02-18 Thread sebb
On 18 February 2011 10:16, Ragini Thakur wrote: > Hi, > > > > I am getting Bean shell error in "Jmeter.log" while executing the JMeter > test plan. > > > > Exception is : jmeter.util.BeanShellInterpreter: Error invoking bsh > method: eval     Parse error

Bean shell Preprocessor Exception

2011-02-18 Thread Ragini Thakur
Hi, I am getting Bean shell error in "Jmeter.log" while executing the JMeter test plan. Exception is : jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Parse error at line 1, column 23 : Error or number too big for integer type: 8780413182 The test

Re: actual usage of Bean shell scripting in jmeter with example

2011-01-28 Thread Rajiv Nanduani
k but still it is not working. can you send me your testscript fle( jmx). + jmeter .properties file On Fri, Jan 28, 2011 at 4:10 AM, Garvita wrote: > > Import statement is not required... > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/actua

Re: actual usage of Bean shell scripting in jmeter with example

2011-01-28 Thread Garvita
Import statement is not required... -- View this message in context: http://jmeter.512774.n5.nabble.com/actual-usage-of-Bean-shell-scripting-in-jmeter-with-example-tp3358087p3361134.html Sent from the JMeter - User mailing list archive at Nabble.com

Re: actual usage of Bean shell scripting in jmeter with example

2011-01-28 Thread Rajiv Nanduani
I did the same on same version as u mentioned. are you writing some import statements in bean shell script area? like this import org.apache.jmeter.util.JMeterUtils; import org.apache.jmeter.samplers.SampleResult; import org.apache.jmeter.assertions.AssertionResult; import

Re: actual usage of Bean shell scripting in jmeter with example

2011-01-27 Thread Garvita
In the end try printing something like this, print("ok") it should go to file and check your extracted variable value. I did this in Jakarta-Jmeter 2.3.4, in which version you are trying??? -- View this message in context: http://jmeter.512774.n5.nabble.com/actual-usage-of-

Re: actual usage of Bean shell scripting in jmeter with example

2011-01-27 Thread Deepak Shetty
://theworkaholic.blogspot.com/2010/03/dynamic-parameters-in-jmeter.html On Wed, Jan 26, 2011 at 7:36 AM, Rajiv Nanduani < rajivkumarnandv...@gmail.com> wrote: > Hi All, > > I have gone through the bean shell scripting in jmeter but i did not find > any example of that, how it i

Re: actual usage of Bean shell scripting in jmeter with example

2011-01-27 Thread Garvita
;); log.info(output); f = new FileOutputStream("C:\\Report\\id.txt"); p = new PrintStream(f); this.interpreter.setOut(p); print(output); -- View this message in context: http://jmeter.512774.n5.nabble.com/actual-usage-of-Bean-shell-scripting-in-jmeter-with-example-tp3358087p335

Re: Huge difference in throughput when reading a file from Bean Shell Sampler

2010-05-24 Thread prasanna bhat
>>What happens when you compare a single JMeter thread with the Eclipse timings? File Size (in KB) Eclipse Timings (ms) JMeter Bean Shell (single thread) (ms) 16 32 59 32 31 81 48 47 120 54 15 134 64 16 159 128 31 317 192 141 477 240 94 569 256 62 612 512 94

Re: Huge difference in throughput when reading a file from Bean Shell Sampler

2010-05-24 Thread sebb
read , which acts as an input for the Java > Program in Bean Shell Sampler. > > 4) I have sample files created for each of the file size intervals mentioned > above and referencing the same for each read. *To illustrate, If suppose > there are 1000 files of 16kb size to be read the

Huge difference in throughput when reading a file from Bean Shell Sampler

2010-05-24 Thread prasanna bhat
be read are in the interval of 16kb-64kb, 64kb-256kb, 256kb-1024kb, 1024kb-4096kb 3) I have a config file (added in CSV Data Set) containing 5000 records giving the file size to be read , which acts as an input for the Java Program in Bean Shell Sampler. 4) I have sample files created for each of

Re: Help Required With Bean Shell Sampler

2010-05-06 Thread prasanna bhat
t; StringBuffer strBuff=new StringBuffer(); > > > > while((c=is.read())!=-1){ > > strBuff.append((char)c); > > } > > > > System.out.println(strBuff.toString()); > > } > > } > > > &

Re: Help Required With Bean Shell Sampler

2010-05-06 Thread sebb
t; while((c=is.read())!=-1){ > strBuff.append((char)c); > } > > System.out.println(strBuff.toString()); > } > } > > To test this, i'm just running it with Thread and 1 loop. > > When i executed the test plan, i didn't

Help Required With Bean Shell Sampler

2010-05-06 Thread prasanna bhat
tput was thrown to the console) and also i didn't notice any errors in the logs. 2) Since i'm using the Bean Shell Sampler for the first time, i tried running a sample piece of java code from Bean Shell sampler public void fun1(){ System.out.println("Inside Fun

Bean Shell Scripting Language

2009-12-22 Thread Jatin Davey
Hi Can some one provide some information about how Bean Shell scripting language is used with respect to JMeter in Load / Stress testing a Web server. Is it a scripting language that can be used to automate some testing of the web server. Please provide some detailed information on it

Re: bean shell timer

2009-02-17 Thread sebb
web-site: http://www.beanshell.org/ On 17/02/2009, Suvendu_Mohapatra wrote: > Hi, > > I am intreasted to know the functionality of this bean shell timer. So that > I can implement it as and when required. Can you please give me an example > related to the Bean shell so that

RE: bean shell timer

2009-02-16 Thread Suvendu_Mohapatra
Hi, I am intreasted to know the functionality of this bean shell timer. So that I can implement it as and when required. Can you please give me an example related to the Bean shell so that I can have some idea about how to and where to use this timer. Thanks & Regards, Suvendu -Orig

Re: bean shell timer

2009-02-16 Thread sebb
On 16/02/2009, Suvendu_Mohapatra wrote: > Hi team, > > I want to generate a delay for my samplers using bean shell timer. Please > help me how to do that. Why do you want to use BeanShell for the timer? There are plenty of other timers - are none of these suitable? You'll ne

bean shell timer

2009-02-16 Thread Suvendu_Mohapatra
Hi team, I want to generate a delay for my samplers using bean shell timer. Please help me how to do that. With Regards, Suvendu Satyam Computer Services Ltd * Ph: 0891-662-4486 * Mobile: +91 9985720595 * suvendu_mohapa...@satyam.com DISCLAIMER: This

Re: Jmeter function in Bean Shell

2008-10-23 Thread sebb
and set up all the environment it expects. This is not going to be easy. But there is no need, as BeanShell can do whatever the function does. > TIA > > -- > View this message in context: > http://www.nabble.com/Jmeter-function-in-Bean-Shell-tp20124969p2

Jmeter function in Bean Shell

2008-10-22 Thread l_u_c_f_e_r_13
BeanShell Assertion. TIA -- View this message in context: http://www.nabble.com/Jmeter-function-in-Bean-Shell-tp20124969p20124969.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: Error from Bean Shell

2008-09-11 Thread sebb
On 11/09/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In the Bean Shell script I get an error which I can't understand. > > If I use this command > String str = "C:\\Documents and > Settings\\rim\\workspace\\HelloWorld\\HelloWorld.jar"; > > I

Error from Bean Shell

2008-09-11 Thread Richard . Markham
In the Bean Shell script I get an error which I can't understand. If I use this command String str = "C:\\Documents and Settings\\rim\\workspace\\HelloWorld\\HelloWorld.jar"; I get following error Error invoking bsh method: eval Sourced file: inline evaluation of: ``

Re: Problem with Regular Expressions usage in Bean Shell Post Processor

2007-09-05 Thread sebb
On 05/09/07, Sebastian Straus <[EMAIL PROTECTED]> wrote: > Hello JMeter-Users, > > first of all i want to thank chris for his quick answer regarding my problem > with the response string in JMeter. I swear i build you a memorial - when > i've got the time :). My next question is more an additiona

Problem with Regular Expressions usage in Bean Shell Post Processor

2007-09-05 Thread Sebastian Straus
Hello JMeter-Users, first of all i want to thank chris for his quick answer regarding my problem with the response string in JMeter. I swear i build you a memorial - when i've got the time :). My next question is more an additional one to my former: I want to get some information from my reciev

Re: bean shell pre/post-processor

2006-07-17 Thread sebb
Try using properties for the config data instead of variables. On 03/07/06, eric craven <[EMAIL PROTECTED]> wrote: i would like to read in a config file before any thread group is run, set a few variables that are valid for all thread groups, and then, after all thread groups have finished, w

bean shell pre/post-processor

2006-07-03 Thread eric craven
i would like to read in a config file before any thread group is run, set a few variables that are valid for all thread groups, and then, after all thread groups have finished, write back some of these variables to a file.. i have to use beanshell for this :) i ran into the following problems:

Re: User variables in Bean Shell

2005-08-08 Thread sebb
works > fine with some customers. I have a long customer list and I want ot pick > up the wrong ones. > It is not possible to track each of them. > > To do this, I need the value of the variables. This is all about. I > could not find out how to get it. The context is passed to

User variables in Bean Shell

2005-08-08 Thread Miklos Tverdota
possible to track each of them. To do this, I need the value of the variables. This is all about. I could not find out how to get it. The context is passed to the Bean Shell, but I am not able to use it. I supposed it is possible to get the values simmilar to the response parameters. This code is

Re: bean shell

2005-07-04 Thread sebb
On 7/4/05, Darko Jovisic <[EMAIL PROTECTED]> wrote: > Oh, I didn't know that my script should be inside > > ${__BeanShell } This is described in the Function documentation, see: http://jakarta.apache.org/jmeter/usermanual/functions.html > > Now it's working fine :) > > Thank you guys, you are

RE: bean shell

2005-07-04 Thread Darko Jovisic
ers, Darko -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 3:16 PM To: JMeter Users List Subject: Re: bean shell Hi darko, i've downloaded exactly the same bsh-2.0b4.jar and copied it to the lib directory. but i've used beanshell in a re

Re: bean shell

2005-07-04 Thread Raj . Mulji_Solanski
Hi darko, i've downloaded exactly the same bsh-2.0b4.jar and copied it to the lib directory. but i've used beanshell in a request parameter in a http query and it worked fine with me. i know that's not what you want to do but you can still give it a try to be sure it's coming from that. here

RE: bean shell

2005-07-04 Thread Darko Jovisic
ently ? Tnx, Darko -Original Message- From: Anurodh Jain [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 2:23 PM To: JMeter Users List Subject: RE: bean shell Hi Darko, Does JMeter show some messege. Check the JMeter log. Try out a simple script which just displays some message on t

RE: bean shell

2005-07-04 Thread Anurodh Jain
: bean shell Hi! I downloaded bsh-2.0b4.jar and copied it to the lib directory. But when I add BeanShell Sampler and try to exec some code nothing happens. What could be the reason ? Tnx, Darko - To unsubscribe, e-mail: [EMAIL

bean shell

2005-07-04 Thread Darko Jovisic
Hi! I downloaded bsh-2.0b4.jar and copied it to the lib directory. But when I add BeanShell Sampler and try to exec some code nothing happens. What could be the reason ? Tnx, Darko

Re: Bean Shell

2005-05-05 Thread sebb
extras. S. On 5/5/05, Anurodh Jain <[EMAIL PROTECTED]> wrote: > > thankx Sebb. Ya, i will do so. Meanwhile, plz let me know if there is any > Bean Shell Initialization file > required to run a Bean Shell Script. > > Regards > Anurodh > > -Original Message

RE: Bean Shell

2005-05-05 Thread Anurodh Jain
thankx Sebb. Ya, i will do so. Meanwhile, plz let me know if there is any Bean Shell Initialization file required to run a Bean Shell Script. Regards Anurodh -Original Message- From: sebb [mailto:[EMAIL PROTECTED] Sent: Thursday, May 05, 2005 5:43 PM To: JMeter Users List Subject: Re

Re: Bean Shell

2005-05-05 Thread sebb
Which version of JMeter? BSH? Any messages in jmeter.log? Try replacing the script with a simpler one, e.g. just a simple sleep() and see if that works. On 5/5/05, Anurodh Jain <[EMAIL PROTECTED]> wrote: > Hi, > Can somebody tell me how to run a Bean Shell Script through JMeter and

Bean Shell

2005-05-05 Thread Anurodh Jain
Hi, Can somebody tell me how to run a Bean Shell Script through JMeter and check the performance of the script. I have created a bsh file and specified that in the Bean Shell Sampler of JMeter. It is running fine but not executing the script and thus not givinng the Avg time it takes. Can

Re: Bean Shell : keeping variables state between iteration.

2004-12-07 Thread sebb
Try it in the startup script, which is processed once for each instance. S. On Tue, 07 Dec 2004 14:53:42 +, Eric Laverge <[EMAIL PROTECTED]> wrote: > Hello again Sedd. > > For my variable initialization problem, there is something I dont get. I > did a simple Test : > > Object myObj

Re: Bean Shell : keeping variables state between iteration.

2004-12-07 Thread Eric Laverge
Hello again Sedd. For my variable initialization problem, there is something I dont get. I did a simple Test : Object myObj = null; // Will be reset avery iteration. Where should I put this line ? if(myObj == null) { myObj = "random_" + new Object().hashCode();

Re: Bean Shell : keeping variables state between iteration.

2004-12-06 Thread Peter Lin
ahh I get it. hmm, I'll look into cookie manager and see if i can hookup the JMS sampler with cookie manager. In theory it shouldn't be too hard to add the support. I'll take a look tomorrow, since it's 10:48 pm. peter On Tue, 07 Dec 2004 03:23:30 +, Eric Laverge <[EMAIL PROTECTED]> wrote:

Re: Bean Shell : keeping variables state between iteration.

2004-12-06 Thread Eric Laverge
This is a 'use case' to Load Test our JMS application : 1- Send a JMS TextMessage : The body will be an xml file loaded from disk. Generate a unique CorrelationId and set the value to JMSCorrelationId header. For each type of XML we send, we have to set the proper MsgType into t

Re: Bean Shell : keeping variables state between iteration.

2004-12-06 Thread Peter Lin
Since I wrote part of the JMS sampler, maybe I can help. right now the JMS sampler isn't hooked up to the other components like cookie manager, or auth manager. can you give me a better description of what you're trying to achieve? peter On Mon, 06 Dec 2004 18:33:17 +, Eric Laverge <[EMAI

Re: Bean Shell : keeping variables state between iteration.

2004-12-06 Thread Eric Laverge
Hello sebb. This is so obvious, I don’t know why I did not think about it. Too much reading on BeanShell… I was looking for ‘global’ scope etc… For The JMS Sampler, some one suggested me to take a look at the new JMS Sampler in the nightly build. I cannot use this Sampler because we need to ge

Re: Bean Shell : keeping variables state between iteration.

2004-12-06 Thread sebb
On Mon, 06 Dec 2004 17:08:31 +, Eric Laverge <[EMAIL PROTECTED]> wrote: > Hello, > > From the Bean shell, I call my Program to send JMS Messages (I cannot use > the JMS Sampler for some reason). > What errors do you get? Which version of JMeter are you using? > //S

Re: Bean Shell : keeping variables state between iteration.

2004-12-06 Thread Eric Laverge
Hello, From the Bean shell, I call my Program to send JMS Messages (I cannot use the JMS Sampler for some reason). //Start BeanShell Sample // The MyClient object will create a JMS Session. // This JMS Session cannot be multithreaded. // For Performance reason, I what to Create

Re: Bean Shell : keeping variables state between iteration.

2004-12-05 Thread sebb
interpreter instance. Check the BeanShell documentation for further information. > 1- Inside a Bean Shell I would like to initialize a variable, only once > for > each iteration. How do I do that ? I don't understand what you mean. Perhaps you could explain what you are trying to

Bean Shell : keeping variables state between iteration.

2004-12-05 Thread Eric Laverge
Hello, I have some problem understanding the Scope of variables of a BeanShell Sampler inside JMeter. Where can I find information about that ? 1- Inside a Bean Shell I would like to initialize a variable, only once for each iteration. How do I do that ? 2- Is there a way to make a variable

Re: Bean Shell

2004-11-03 Thread sebb
On Wed, 3 Nov 2004 12:11:45 -0500, Mike Buzzetti <[EMAIL PROTECTED]> wrote: > I was looking through the JMeter user manual and the Wiki pages and > got very interesed in the Bean Shell Sampler and Assertion. > > There is very little informaion on how to use bean shell s

Bean Shell

2004-11-03 Thread Mike Buzzetti
I was looking through the JMeter user manual and the Wiki pages and got very interesed in the Bean Shell Sampler and Assertion. There is very little informaion on how to use bean shell scripts with jmeter. I saw awhile back in the Mailing list, "K.P. Thottam" <[EMAIL PROTECTED]>