Arunkumar Selvaraj
Arunkumar Selvaraj

Reputation: 11

How to send test results (CSV file) in Jmeter through Email after Test Run

Please provide the solution for how to send test results (CSV file) in Jmeter through Email after Test Run.

How to schedule the test for particular time and send mail automatically

Awaiting for your response

Upvotes: 1

Views: 752

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

  1. Add the next line to user.properties file (located in the "bin" folder of your JMeter installation)

    jmeter.save.saveservice.autoflush=true
    
  2. Add tearDown Thread Group to your Test Plan
  3. Put SMTP Sampler under the tearDown Thread Group, configure SMTP server details, credentials, etc. and set it to send testresult.csv as the attachment. See Load Testing Your Email Server: How to Send and Receive E-mails with JMeter for more information and some example configuraiton.
  4. Run your test in command-line non-GUI mode like:

    jmeter -n -t yourtest.jmx -l testresult.csv  
    
  5. That's it, JMeter will run your test and send results via email upon test completion.

Upvotes: 1

Related Questions