Save As Log.mht rename file name as a date. Then send out email.
Hi!
I am beginner and only work with keyword cases have very basic understanding about scripts.
THINGS I NEED TO DO:
1. Save report as today's_date.mht
2. Automatically send out an email after report document created.
THINGS WHAT I'VE DONE:
1. Created 2 scripts for "save as" and it works
2. Created a script for email automation and it give an error.
THINGS WHERE I'M STUCK:
1. Here is my "save as script" and it works but can somebody please help me to be able to save it as 'todays date' everytime.
function Test()
{
// Saving file
// ...
Log.SaveResultsAs("V:\\TestComplete\\Reports\\Report.mht", lsMHT);
}
2. Here is my script for email automation (outgoing server is correct etc), but I get an error: screenshot
I'm trying to use our Outlook mail which is installed locally.
function Test()
{
if (SendMail("rmarchuk@venturetechsolutions.com", "relay.ventureresource.local", "Roman Marchuk", "romanmfs@yahoo.com",
"Notification", "Hello QA, Your website is beautiful.", "V:\\TestComplete\\Reports\\Report.mht"))
Log.Message("Mail was sent");
else
Log.Warning("Mail was not sent");
}
Can somebody please help me I've been going back and forward with this for like 2 weeks now :(