You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Tracy Bost <tb...@valocity.com> on 2004/08/18 19:40:10 UTC

Mailer Listener

I wish to have the mailer listener email me for a failed assertion.
I believe I have it set all up correctly as I'm having the mailer 
visualizer to write to a file. The file correctly gives true or false 
depending if the assertion failed or not.
I'm just not getting the emails. I have tried setting the failure limit 
to 2, then 1, then 0 ... Also, the "test mail" does send me a test 
email, so what I that, I assuming its not attempting to send the email.



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Mailer Listener

Posted by Sebastian Bazley <se...@apache.org>.
It works for me using latest JMeter code; I've not tested with 2.0.1.

I've had a look at the code (MailerModel.java), but unfortunately there's
insufficient logging to be able to tell what is happening ...

However, I have found a way of forcing an error.

If the From address is invalid, e.g. it has no @ sign, then this gives a log
entry like:

2004/08/19 00:37:45 ERROR - jmeter.reporters.MailerModel: Problem sending
mail javax.mail.SendFailedException: Sending failed;
  nested exception is:
 class javax.mail.MessagingException: 501 <test>: sender address must
contain a domain
 at javax.mail.Transport.send0(Transport.java:218)

This will at least tell you if JMeter has attempted to send a message.

BTW, an invalid From address is incorrectly reported as "The mail server is
unknown" when using the Test button ...

S.
----- Original Message ----- 
From: "Tracy Bost" <tb...@valocity.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Wednesday, August 18, 2004 9:27 PM
Subject: Re: Mailer Listener


> Here's the log.  The 5th line is a test email which I can receive.
>
> Thanks !
>
>
>
> 2004/08/18 14:21:34 INFO  - jmeter.JMeter: Version 2.0.1
> 2004/08/18 14:21:34 INFO  - jmeter.JMeter: java.version=1.4.1
> 2004/08/18 14:41:15 INFO  - jmeter.gui.action.Load: Loading file:
> E:\jmeter\jakarta-jmeter-2.0.1\AVM.jmx
> 2004/08/18 14:41:41 INFO  - jmeter.gui.action.Load: Loading file:
> E:\jmeter\jakarta-jmeter-2.0.1\bin\testfiles\AssertionTestPlan.jmx
> 2004/08/18 15:20:31 INFO  - jmeter.visualizers.MailerVisualizer: Mail
> sent successfully!!
> 2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine: Running
> the test!
> 2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine: About to
> call test listeners
> 2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine:
> Notifying test listener:
> org.apache.jmeter.protocol.http.sampler.HTTPSampler
> 2004/08/18 15:21:12 INFO  - jmeter.testelement.AbstractTestElement: path
> property is a org.apache.jmeter.testelement.property.StringProperty
> 2004/08/18 15:21:12 INFO  - jmeter.testelement.AbstractTestElement: path
> beginning value = /
> 2004/08/18 15:21:12 INFO  - jmeter.testelement.AbstractTestElement:
> Encoding spaces in path
> 2004/08/18 15:21:12 INFO  - jmeter.testelement.AbstractTestElement: path
> ending value = /
> 2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine:
> Notifying test listener: org.apache.jmeter.reporters.MailerResultCollector
> 2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine:
> Notifying test listener: org.apache.jmeter.reporters.ResultCollector
> 2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine:
> Notifying test listener: org.apache.jmeter.reporters.ResultCollector
> 2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine:
> Notifying test listener: org.apache.jmeter.gui.MainFrame
> 2004/08/18 15:21:12 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(true,local)
> 2004/08/18 15:21:13 INFO  - jmeter.engine.StandardJMeterEngine: Starting
> 1 threads for group Thread Group. Ramp up = 0.
> 2004/08/18 15:21:13 INFO  - jmeter.engine.StandardJMeterEngine: Continue
> on error
> 2004/08/18 15:21:13 INFO  - jmeter.threads.JMeterThread: Thread Thread
> Group1-1 started
> 2004/08/18 15:21:14 INFO  - jmeter.threads.JMeterThread: Thread Thread
> Group1-1 is done
> 2004/08/18 15:21:14 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(false,local)
> 2004/08/18 15:21:14 INFO  - jmeter.engine.StandardJMeterEngine: Test has
> ended
>
> File written by the Mailer Visualizer:
>
> <testResults>
> <sampleResult timeStamp="1092860474530" dataType="text"
> threadName="Thread Group1-1" label="HTTP Request" time="1032"
> responseMessage="OK" responseCode="200" success="false"/>
> </testResults>
>
>
>
>
>
>
> Peter Lin wrote:
>
> >it could be a bug. can you see if any errors appear in jmeter's log?
> >
> >peter
> >
> >
> >On Wed, 18 Aug 2004 12:40:10 -0500, Tracy Bost <tb...@valocity.com>
wrote:
> >
> >
> >>I wish to have the mailer listener email me for a failed assertion.
> >>I believe I have it set all up correctly as I'm having the mailer
> >>visualizer to write to a file. The file correctly gives true or false
> >>depending if the assertion failed or not.
> >>I'm just not getting the emails. I have tried setting the failure limit
> >>to 2, then 1, then 0 ... Also, the "test mail" does send me a test
> >>email, so what I that, I assuming its not attempting to send the email.
> >>
> >>---------------------------------------------------------------------
> >>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
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> 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: Mailer Listener

Posted by Tracy Bost <tb...@valocity.com>.
Here's the log.  The 5th line is a test email which I can receive.

Thanks !



2004/08/18 14:21:34 INFO  - jmeter.JMeter: Version 2.0.1
2004/08/18 14:21:34 INFO  - jmeter.JMeter: java.version=1.4.1
2004/08/18 14:41:15 INFO  - jmeter.gui.action.Load: Loading file: 
E:\jmeter\jakarta-jmeter-2.0.1\AVM.jmx
2004/08/18 14:41:41 INFO  - jmeter.gui.action.Load: Loading file: 
E:\jmeter\jakarta-jmeter-2.0.1\bin\testfiles\AssertionTestPlan.jmx
2004/08/18 15:20:31 INFO  - jmeter.visualizers.MailerVisualizer: Mail 
sent successfully!!
2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine: Running 
the test!
2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine: About to 
call test listeners
2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine: 
Notifying test listener: 
org.apache.jmeter.protocol.http.sampler.HTTPSampler
2004/08/18 15:21:12 INFO  - jmeter.testelement.AbstractTestElement: path 
property is a org.apache.jmeter.testelement.property.StringProperty
2004/08/18 15:21:12 INFO  - jmeter.testelement.AbstractTestElement: path 
beginning value = /
2004/08/18 15:21:12 INFO  - jmeter.testelement.AbstractTestElement: 
Encoding spaces in path
2004/08/18 15:21:12 INFO  - jmeter.testelement.AbstractTestElement: path 
ending value = /
2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine: 
Notifying test listener: org.apache.jmeter.reporters.MailerResultCollector
2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine: 
Notifying test listener: org.apache.jmeter.reporters.ResultCollector
2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine: 
Notifying test listener: org.apache.jmeter.reporters.ResultCollector
2004/08/18 15:21:12 INFO  - jmeter.engine.StandardJMeterEngine: 
Notifying test listener: org.apache.jmeter.gui.MainFrame
2004/08/18 15:21:12 INFO  - jmeter.gui.util.JMeterMenuBar: 
setRunning(true,local)
2004/08/18 15:21:13 INFO  - jmeter.engine.StandardJMeterEngine: Starting 
1 threads for group Thread Group. Ramp up = 0.
2004/08/18 15:21:13 INFO  - jmeter.engine.StandardJMeterEngine: Continue 
on error
2004/08/18 15:21:13 INFO  - jmeter.threads.JMeterThread: Thread Thread 
Group1-1 started
2004/08/18 15:21:14 INFO  - jmeter.threads.JMeterThread: Thread Thread 
Group1-1 is done
2004/08/18 15:21:14 INFO  - jmeter.gui.util.JMeterMenuBar: 
setRunning(false,local)
2004/08/18 15:21:14 INFO  - jmeter.engine.StandardJMeterEngine: Test has 
ended

File written by the Mailer Visualizer:

<testResults>
<sampleResult timeStamp="1092860474530" dataType="text" 
threadName="Thread Group1-1" label="HTTP Request" time="1032" 
responseMessage="OK" responseCode="200" success="false"/>
</testResults>






Peter Lin wrote:

>it could be a bug. can you see if any errors appear in jmeter's log?
>
>peter
>
>
>On Wed, 18 Aug 2004 12:40:10 -0500, Tracy Bost <tb...@valocity.com> wrote:
>  
>
>>I wish to have the mailer listener email me for a failed assertion.
>>I believe I have it set all up correctly as I'm having the mailer
>>visualizer to write to a file. The file correctly gives true or false
>>depending if the assertion failed or not.
>>I'm just not getting the emails. I have tried setting the failure limit
>>to 2, then 1, then 0 ... Also, the "test mail" does send me a test
>>email, so what I that, I assuming its not attempting to send the email.
>>
>>---------------------------------------------------------------------
>>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
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Mailer Listener

Posted by Peter Lin <wo...@gmail.com>.
it could be a bug. can you see if any errors appear in jmeter's log?

peter


On Wed, 18 Aug 2004 12:40:10 -0500, Tracy Bost <tb...@valocity.com> wrote:
> I wish to have the mailer listener email me for a failed assertion.
> I believe I have it set all up correctly as I'm having the mailer
> visualizer to write to a file. The file correctly gives true or false
> depending if the assertion failed or not.
> I'm just not getting the emails. I have tried setting the failure limit
> to 2, then 1, then 0 ... Also, the "test mail" does send me a test
> email, so what I that, I assuming its not attempting to send the email.
> 
> ---------------------------------------------------------------------
> 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