maximojo
9 years agoFrequent Contributor
Method to incrementally save html log while test is running
Hi all, Just curious if anyone has found a way to incrementally save an html log. By this I mean, while the test is running: - Every e.g. minute, export out to html (we can only use Log.SaveL...
- 9 years ago
Correct, there is not a function to do a delta... what you would do is a constant "updating" of the existing TestComplete export using the Log.SaveLogAs method. The effect is still the same: every so many seconds, a timer kicks off and saves the TC log up to that point.
One thing to take a look at... If you have your tests organized as TestItems in the project, there is an option in the SaveLogAs to only save out the log for the current TestItem. What you could do then is add code into your routine that does the save to detect when the project moves on to a new test item... when it does, save a new file.
It's not EXACTLY what you want... but it does effectively what you need to.