jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anurodh Jain <>
Subject RE: Beanshell Scripting
Date Mon, 04 Jul 2005 11:27:21 GMT
thankx john,
 thats should work. If I wanna obtain the number of threads so I would just
do :
 var.get("num_threads") right.

One more thing I wanna know is : If i am using a Beanshell script to test an
Is there is way where I can time only the selective part of the Script for
Load testing.
I want only some part of the the beanshell script for testing the load
generated by my
 How can we go about dong this? Any idea.

With Regards

-----Original Message-----
From: Sweet-Escott, John []
Sent: Monday, July 04, 2005 3:01 PM
To: JMeter Users List
Subject: RE: Beanshell Scripting

Try this

import org.apache.jmeter.threads.JMeterContext;
import org.apache.jmeter.threads.JMeterContextService;
import org.apache.jmeter.threads.JMeterVariables;
JMeterContext jmctx = JMeterContextService.getContext();
JMeterVariables vars = jmctx.getVariables();

fooval = vars.get("foo");



To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message