You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Cédric Tabin <ta...@gmail.com> on 2008/08/14 15:55:38 UTC

Execute a class when JMeter is launched

Hello,

In order to dynamicall generate a TestPlan, I'd like to run a class when
JMeter is launched. My class will be in jar that JMeter load at startup. Is
there a way to do that ?

Thanks & best regards,
Cedric Tabin

Re: Execute a class when JMeter is launched

Posted by sebb <se...@gmail.com>.
On 14/08/2008, Cédric Tabin <ta...@gmail.com> wrote:
> Hello,
>
>  In order to dynamicall generate a TestPlan, I'd like to run a class when
>  JMeter is launched. My class will be in jar that JMeter load at startup. Is
>  there a way to do that ?
>

Of course! There are lots of ways to do this.

Add a call to a Jexl or BeanShell function on the TestPlan; this will
be processed when the test starts.

If you want to call the class method a bit earlier, you will need to
use the beanshell startup facility, see jmeter.properties.

Or of course you can amend the JMeter source and recompile it...

>  Thanks & best regards,
>  Cedric Tabin
>

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