bhavyaNaveen
5 years agoVisitor
How to send report in TestComplete via email
How to send report in TestComplete via email with complete log details
- 5 years ago
use the buildtin sendmail function alongside the log.saveresultas method in order to generate the complete log details, and attach it with the email you want to send.
https://support.smartbear.com/testcomplete/docs/scripting/sending-email-from-scripts.html
modify the script below and include it as your final test item at the project level.
def test(): Log.SaveResultsAs(Project.ConfigPath + "\\MHT_Files\\" + ProjectSuite.TestItems.Current.ProjectName + ".mht", lsMHT) SendMail("justin.kim@smartbear.com", "mail.smartbear.com", "Justin Kim", "justin.kim@smartbear.com", "Error in Test Run", "Please take a look at the attached results file", Project.ConfigPath + "\\MHT_Files\\" + ProjectSuite.TestItems.Current.ProjectName + ".mht")