It works if I just add the following to the plan
<node>
<testelement class="org.apache.jmeter.reporters.MyListener">
<property xml:space="preserve"
name="TestElement.test_class">org.apache.jmeter.reporters.MyListener</proper
ty>
</testelement>
</node>
----- Original Message -----
From: "Richard Han" <[EMAIL PROTECTED]>
To: "JMeter Developers List" <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 9:43 PM
Subject: how to specify sample listener in plan
> Hi,
> Please help me if you could.
>
> I am trying to let the test do something when the sampling is done. I am
> thinking writing an SampleListener, i.e.,
>
> class MySampleListener implements SampleListener
> {
> public void sampleOccurred(SampleEvent sampleEvent)
> {
> doSomething()
> }
> etc etc
> }
>
>
> but I don't know how to specify my SampleListener in the test plan.
> BTW I don't need any Visualizers because I am running JMeter in non-gui
> mode.
> I am using JMeter-1.8.1
>
> Thanks in advance!
>
> richard
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]