Yoav
Yoav

Reputation: 93

How to develop JMeter Backend Listener?

I would like to develop my own JMeter Backend Listener.

My goal:

It will work in non-GUI mode.

After it is developed, how is it supposed to be added into JMeter (should it be added as an external .JAR, similar to plugins in /lib/ext)?

If I understood correct, I should -

Extend:

public class MY_CLASS_NAME extends AbstractBackendListenerClient implements Runnable {

In JMX:

<BackendListener guiclass="BackendListenerGui" 
                 testclass="BackendListener" 
                 testname="Backend Listener" enabled="true">
    <stringProp name="classname">MY_CLASS_NAME</stringProp>
</BackendListener>

Is there any API that I can use to add my Backend Listener to JMX file without opening UI (JMX test runs from Java code)?

Any inputs / example would be highly appreciated

Upvotes: 1

Views: 2839

Answers (1)

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34526

You only have to develop a subclass of AbstractBackendListenerClient

JMeter will expose it in UI so that you set in XML, don

See an example here:

And a full tutorial here:

Upvotes: 2

Related Questions