Oferv
15 years agoSuper Contributor
Log["SaveResultsAs"](FileName, 1) doesn't save log in HTML format
Hi,
unfortunatly i tried what it says on http://blog.smartbear.com/post/10-03-22/testcomplete-8-sneak-peek-posting-html-messages-to-the-log/ and it didn't create any html format log file.
just copy the following lines to the end of the script and run it.
// the test results in the MHT format
FileName = Project["ConfigPath"] & "ExportedLog\MyResults.html"
// Saves the test results
Log["SaveResultsAs"](FileName, 1)
the script created log but it wasn't html format
can anybody help me creating html log file.
my main goal is to paint the results so it will be easier to view using browser
in order to view the log i used the following lines:
if (aqFile["Exists"](InstallationPath + DDT["CurrentDriver"]["Value"]("File Name")))
{
Log["AppendFolder"]("File " + DDT["CurrentDriver"]["Value"]("File Name") + " exists under " + InstallationPath, "<html><body><p><b style=\"color : green\">PASS</b></p></body></html>");
//Log["Message"]("File " + DDT["CurrentDriver"]["Value"]("File Name") + " exists under " + InstallationPath)
}
else
Log["Message"]("File " + DDT["CurrentDriver"]["Value"]("File Name") + " does not exist under " + InstallationPath, "<html><body><p><b style=\"color : red\">FAIL</b></p></body></html>");
please correct me if i'm doing something wrong.
thanks
unfortunatly i tried what it says on http://blog.smartbear.com/post/10-03-22/testcomplete-8-sneak-peek-posting-html-messages-to-the-log/ and it didn't create any html format log file.
just copy the following lines to the end of the script and run it.
// the test results in the MHT format
FileName = Project["ConfigPath"] & "ExportedLog\MyResults.html"
// Saves the test results
Log["SaveResultsAs"](FileName, 1)
the script created log but it wasn't html format
can anybody help me creating html log file.
my main goal is to paint the results so it will be easier to view using browser
in order to view the log i used the following lines:
if (aqFile["Exists"](InstallationPath + DDT["CurrentDriver"]["Value"]("File Name")))
{
Log["AppendFolder"]("File " + DDT["CurrentDriver"]["Value"]("File Name") + " exists under " + InstallationPath, "<html><body><p><b style=\"color : green\">PASS</b></p></body></html>");
//Log["Message"]("File " + DDT["CurrentDriver"]["Value"]("File Name") + " exists under " + InstallationPath)
}
else
Log["Message"]("File " + DDT["CurrentDriver"]["Value"]("File Name") + " does not exist under " + InstallationPath, "<html><body><p><b style=\"color : red\">FAIL</b></p></body></html>");
please correct me if i'm doing something wrong.
thanks