Hi Mateen,
>>>
How can I email this only this report instead of the whole master log.
<<<
To send only a summary of test results, follow the steps below:
1. Export the needed log to HTML.
2. Find TestRunSummary.xml in the folder where the exported log is stored. It holds the name of the .htm file, which contains the summary. As far as I understand, this file is what you need to send.
You can use the code below to get the full name of the summary file:
[JScript]
function getSummaryFile()
{
var xmlDoc = Sys.OleObject("Msxml2.DOMDocument");
var logFolder = "c:\\Log\\";
var xmlFile = "TestRunSummary.xml";
xmlDoc.load(logFolder + xmlFile);
return logFolder + xmlDoc.selectSingleNode("/TestRunSummary").text;
}
To send it via e-mail, use the following code:
[JScript]
SendMail(ToAddress, FromHost, FromName, FromAddress, Subject, Body, getSummaryFile);
See the 'Built-In.SendMail' help topic for more information:
>>>
When I right click on the master project log(from the log items list) , I get this option of "Send Via email", which will generate a MHT file and attach it to the Outlook email message. Now where do I find this .MHT file?
<<<
You can find it here:
-for Windows Vista and Windows 7
C:\Users\<USERNAME>\AppData\Local\Temp\
-for Windows XP
C:\Documents and Settings\<USERNAME>\Local Settings\Temp\