1

I've found various links for sending TestNG reports to be emailed after test executions here are two of the links

https://loganathan1988.wordpress.com/2014/11/03/how-to-email-automated-test-execution-reports-as-an-attachment-using-java-mail-api-in-selenium/comment-page-1/#comment-9 http://www.assertselenium.com/java/emailable-reports-for-selenium-scripts/

I've downloaded mail.jar as well but don't know how to configure all this with my project to send email after test exection

  • 1
    create new method , Add code which send mail and run it. But I think you will get issue that Testng sending previous run test mail always. So better you use Jenkins for mail. – Helping Hands Dec 18 '15 at 4:36
  • DO you use any form of CI tool like Jenkins or bamboo? I would tend to advise against adding functionality to your program when most reporting systems include the functionality already. – ECiurleo Dec 18 '15 at 8:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.