Log file size
I have a large set of tests that are executed using TestExecute. The test team are now stringing several test runs together, which makes the MHT log file very large. I am looking at ways to reduce the file size.
1) Is there a way to control the resolution of the screen grabs or limit sys.desktop to only capture one monitor on a multi-monitor test machine?
2) What I am mainly looking at is breaking up the log files as the tests are executed using the log.SaveResultsAs command but the file sizes increase in size because the log is always taken from the beginning rather than the last log.SaveresultsAs command. Is there a way to reset the log?
3) Even though I am using log.SaveResultsAs(filename, lsMHT, FALSE) I am still logging visualiser images. The FALSE should prevent this - shouldn't it?
Example code (VBS):
sub Testlog
'experiments to reduce log size
for j = 1 to 5
log.message("Index j = " & j)
for i = 1 to 5
log.message("Index i = " & i)
log.Error("Basic error with no specific picture.") 'Visualiser image should not be logged but is
next
'Not sure if explicitly specified images will be logged with Visualiser turned off
call log.message("Message with screenshot",,,,sys.Desktop)
call log.Error("Error with screenshot",,,,sys.Desktop)
call log.SaveResultsAs("C:\Temp\test" & j & ".mht", lsMHT, false)
next
end sub