fujunxu
11 years agoContributor
Problem when using Log.SaveResultsAs
I tried to use Log.SaveResultsAs in my script so when there is erro my script can send the error log through email. But I found that the result file({72032B8B-B283-4530-B081-E3C3A57B53A1} )for Log.SaveResultsAs is only 6k. The same result file which generated by TC is 22K. Looks like when I use Log.SaveResult it only save part of the logs.
- Or you can try mhtml format but without pictures in it - it will be much lighter:
procedure
ExportExample;
var
FileName : OleVariant;
begin
FileName := Project.ConfigPath + 'Log\YourFile.mhtml';
Log.SaveResultsAs(FileName, 0, false);