jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Custom Java sampler not visible
Date Thu, 28 Jan 2010 17:39:11 GMT
On 28/01/2010, Robert Bowman <RBowman@allantgroup.com> wrote:
> I am trying to use JMeter to test the performance of a Java class.  I have
>  developed a test client that implements JavaSamplerClient by extending
>  AbstractJavaSamplerClient. and implementing the runTest method.  I have
>  compiled my client class and built a jar containing it.

And where did you put the jar?

>  In the JMeter test plan editor I go to the 'TestPlan' configuration form
>  and add the jar containing my client class to the classpath.  I then
>  attempt to add a Java Request sampler to my test plan.  The configuration
>  form for the Java Request sampler has a drop-down for selecting the
>  classname.  The dropdown has only two entries,
>  org.apache.jmeter.protocol.java.test.JavaTest and
>  org.apache.jmeter.protocol.java.test.SleepTest.  The name of my client
>  class does not appear and there is nowhere to enter an alternative
>  classname.
>
>  I have tried various ways of adding my client class to the class path but
>  none of them results in my class appearing in the dropdown.  Is this a bug
>  or a feature?  Is there a workaround?  Or is there a better way of using
>  JMeter to test the performance of a Java class that I have overlooked?

What ways did you try?

>  Thanks in anticipation,
>
>  Bob Bowman
>
>
>
>
>
>
>  ---------------------------------------------------------------------
>  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


Mime
View raw message