Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to send the testNG reports directly through mail to the stakeholders once its complete execution. What is the best possible way for it?
There are at least 2 approaches:
If Jenkins is used in your company, you create a job that runs tests and then e-mails report by Email ext plugin.
Or you can add such functionality to @BeforeSuite method with JavaMail.
Required, but never shown