pmartin66
8 years agoOccasional Contributor
Capturing the internal event logs to export them at runtime to external log
Is it possible for me to get to and print out all the 'Additional Information' logged with actions in TestComplete so I can log it to my logger? The idea is simple, a user runs tests and they fail...
- 8 years ago
The other way to do it would be to utilize the event handlers for the built in TestComplete log (OnLogError, OnLogWarning, OnLogMessage, OnLogEvent, etc). Within those event handlers, you could write code which, in real-time, would update whatever file you want to.
In each event handler, there's a parameter called LogParams that contains information about what is being logged. On that object, there's an "AdditonalText" property that, for the log record being written, contains that Additional Info stuff. So, on the event handler, you could write code to do a WriteLine to a text file containing the Additional Text.