You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sginsbourg <sg...@gmail.com> on 2012/05/15 10:09:38 UTC
Calling a JAVA method in jar file
Hi,
Looking for a template of a BeanShell Sampler (or alternative) that calls a
JAVA method from a JAR file.
That JAR file has already been copied to the Jmeter/LIB/EXT folder.
Thank you!
Shay
--
View this message in context: http://jmeter.512774.n5.nabble.com/Calling-a-JAVA-method-in-jar-file-tp5709848.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Calling a JAVA method in jar file
Posted by Deepak Shetty <sh...@gmail.com>.
>Looking for a template of a BeanShell Sampler (or alternative) that calls a
>JAVA method from a JAR file.
No different than calling it from any other java class
import com.whatever.Whatever;
Whatever whatever = new Whatever ();
whatever.doSomethingUseful();
//update the beanshell variables with the response or something
On Tue, May 15, 2012 at 1:09 AM, sginsbourg <sg...@gmail.com> wrote:
>
> Hi,
>
> Looking for a template of a BeanShell Sampler (or alternative) that calls a
> JAVA method from a JAR file.
>
> That JAR file has already been copied to the Jmeter/LIB/EXT folder.
>
> Thank you!
>
> Shay
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Calling-a-JAVA-method-in-jar-file-tp5709848.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>