You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Sireesha Sridhara <ss...@avolent.com> on 2007/03/09 17:35:42 UTC
Calling java methods
Hi,
How do we call external java methods from JMETER> I have decrypt and
ecrypt some data.To do that I have call some methods , that is java
methods.How do I call such methods from jmeter.
Thank you,
Sireesha Sridhara.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: Calling java methods
Posted by iblavins <ib...@temenos.com>.
G'day
You can write the Java to be executed as a sampler. (The Java program
doesn't actually have to talk to the (or any) server to be a legal sampler).
You can pass values back from Java to the test plan as the sampler result.
You can run a regular expression extractor over the Java sampler result to
bring selected portions of the result into test plan variables.
Note though that the sampler has to return a good HTTP return code or the
sampler will be deemed to have failed.
Ian Blavins
Contract Performance Engineer
Temenos
-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: 12 March 2007 12:05
To: JMeter Users List
Subject: Re: Calling java methods
There is no direct way to call arbitrary Java methods from within JMeter.
However, you can either write your own JMeter add-on, or you can use
the BeanShell or JEXL scripting languages to call Java directly from
JMeter.
Which is best depends on how you want to use the encryption/decryption
in JMeter - and your level of Java expertise.
Or you can set up a SOAP or other service to do the de/en-cryption for
you and call that.
S.
On 12/03/07, Ramakrishna Devaki <ra...@gmail.com> wrote:
> Hi,
>
> My understanding u can use Java object through SAOP request.
>
> Ram
>
> On 3/9/07, Sireesha Sridhara <ss...@avolent.com> wrote:
> >
> >
> > Hi,
> > How do we call external java methods from JMETER> I have decrypt and
> > ecrypt some data.To do that I have call some methods , that is java
> > methods.How do I call such methods from jmeter.
> >
> > Thank you,
> > Sireesha Sridhara.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
This email (and any attachments) contains confidential information, and is intended
only for the named recipient. Distribution or copying of this email by anyone
other than the named recipient is prohibited. If you are not the named or
intended recipient, please notify TEMENOS or the sender immediately and
permanently destroy this email (and any attachments) and all copies of it. No
member of TEMENOS Group AG or any of its associated or affiliated companies is
liable for any errors or omissions in the content or transmission of this
email. Any opinions contained in this email are solely those of the author and,
unless clearly indicated otherwise in writing, are not endorsed by any member
of TEMENOS Group AG or any of its associated and affiliated companies.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Calling java methods
Posted by sebb <se...@gmail.com>.
There is no direct way to call arbitrary Java methods from within JMeter.
However, you can either write your own JMeter add-on, or you can use
the BeanShell or JEXL scripting languages to call Java directly from
JMeter.
Which is best depends on how you want to use the encryption/decryption
in JMeter - and your level of Java expertise.
Or you can set up a SOAP or other service to do the de/en-cryption for
you and call that.
S.
On 12/03/07, Ramakrishna Devaki <ra...@gmail.com> wrote:
> Hi,
>
> My understanding u can use Java object through SAOP request.
>
> Ram
>
> On 3/9/07, Sireesha Sridhara <ss...@avolent.com> wrote:
> >
> >
> > Hi,
> > How do we call external java methods from JMETER> I have decrypt and
> > ecrypt some data.To do that I have call some methods , that is java
> > methods.How do I call such methods from jmeter.
> >
> > Thank you,
> > Sireesha Sridhara.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Calling java methods
Posted by Ramakrishna Devaki <ra...@gmail.com>.
Hi,
My understanding u can use Java object through SAOP request.
Ram
On 3/9/07, Sireesha Sridhara <ss...@avolent.com> wrote:
>
>
> Hi,
> How do we call external java methods from JMETER> I have decrypt and
> ecrypt some data.To do that I have call some methods , that is java
> methods.How do I call such methods from jmeter.
>
> Thank you,
> Sireesha Sridhara.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>