I am trying to send an email of the allure report generated by the framework using selenium. I have read the documentation but could not find any answer on how to send email. Could any one please point me to the correct direction.
Thanks, Sudheer
In case you only need to send the report summary - it is not possible yet. Here you can find the ticket for such feature.
Allure generates a collection of files, that ought to be viewed via a web server. This due to the browsers restrictions on reading files from disk. This is needed to view Allure report correctly.
So in my mind you should post the result of Allure on a web server and the email the link to the report. As a side note, sending multi-megabyte email attachments with embedded JavaScript is rarely a good approach.
来源:https://stackoverflow.com/questions/41960081/how-to-send-an-email-of-allure-report