I am sending one email at the end of the execution to the interested parties for execution result using sendmail. I want to attach latest TestComplete execution result sheet in this email at run time.
How can I do that?
Automation Test Analyst
You need to implement the OnStopTest event handler in which you can use SendMail. For more information, see the following SQAforums thread and the Handling Events and OnStopTest Event help topics.
Allen - SmartBear Support
I am already using Sendmail in OnStopEvent.
What I need is how can I attach Result Log generated by TestComplete to the mail ?
Export the log contents as a single .mht file using Log.SaveResultsAs inside the event handler and specify this file name as the seventh parameter of the SendMail function.
The solution suggested by you is working for me.