Nawab_Shaikh
10 years agoOccasional Contributor
Emailing Execution Result
Hi, My requriement is to email the execution result once the execution conclude. Is there a process to extract the execution result at the conclcusion and add it as an attachement to my email fu...
- 10 years ago
Refer - https://support.smartbear.com/viewarticle/67749/#CDO
As per your requirement, we can trigger the mail at OnStop() Event.
Things to do:
1. Export the test log at the end of test run
if(Project.TestItems.Current != undefined)//To check there is no more items to execute
Log.SaveResultsAs(ProjectSuite.Path + "Log\\"+ Project.TestItems.Current.Name".mht", 2, true, 2);//Export the to 'Log' folder2. Write a new function for sending mail using CDO
Pass the above test result lag path for attachment and toMail and ccMail recepients to the newly written function
Regards,
Ari