Forum Discussion
nastester
2 years agoRegular Contributor
I had this issue too and never figured it out. I ended up just writing a small script to send an email with the log.
function PackResults()
{
var WorkDir, FileName;
WorkDir = Project.ConfigPath + "Log\\ExportedResults\\";
FileName = WorkDir + "SmokeTest_TestResults.mht";
Log.SaveResultsAs(FileName, 2);
Log.Message("Results saved");
}
function EmailResults()
{
if (SendMail(Project.Variables.emails, "SMTP SERVER", "NAME", "EMAIL ADDRESS", "Smoke Test Results", "Test results attached",
Project.ConfigPath + "Log\\ExportedResults\\SmokeTest_TestResults.mht"))
Log.Message("Mail was sent");
else
Log.Warning("Mail was not sent");
}
- pavithiras2 years agoOccasional Contributor
Hi,
Do I have to configure anything in my Email client to allow/communicate with SMTP Server for the script you provided? nastester
Thank you.- nastester2 years agoRegular Contributor
No I don't think so. I just put the SMTP server in the script and it worked.
https://support.smartbear.com/testcomplete/docs/scripting/sending-email-from-scripts.html
Related Content
- 5 years ago
- 4 years ago
Recent Discussions
- 20 hours ago
- 20 hours ago
- 5 days ago