I also discovered that changes to the GUI don't all seem to be passed on to
the mailer - for example, if the Test button works, try changing the smtp
host to something invalid: the test mail will still be sent using the
original host, but the contents (which are directly generated by the GUI)
show the new host name.

I'm working on trying to fix this ... but I don't think it is directly
relevant to the original problem.

S.
-----Original Message-----
From: Sebastian Bazley [mailto:[EMAIL PROTECTED]
Sent: 19 August 2004 00:48
To: JMeter Users List
Subject: Re: Mailer Listener


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" <[EMAIL PROTECTED]>
To: "JMeter Users List" <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >---------------------------------------------------------------------
> >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]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_______________________________________________________

This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the
sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted. 
_______________________________________________________


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to