Morgan
10 years agoFrequent Contributor
Log.SaveResultAs producing error... why?
Hi,
The following code is producing an error that IsHTML is an unknown name... what am I doing wrong?
function SaveOutResults;
var strDesktop, sPath;
begin
// Specifies the path to the file that will contain the test results in the HTML format
strDesktop := Sys.OleObject('WScript.Shell').SpecialFolders('Desktop');
sPath := strDesktop + '\' + Project.Variables.ScriptRunning + ' Results';
If aqFile.Exists(sPath)
then
begin
aqFileSystem.DeleteFolder(sPath, true);
Log.Message('Folder existed previously - deleted');
end;
Log.SaveResultsAs(sPath,IsHTML);
Log.Message('Results for ' + Project.Variables.ScriptRunning + ' saved');
end;
Thanks a lot,
Morgan