How to uniquely identify TestComplete Testcase operation output in multiple XML logs.
I have a requirement to uniquely identify testcase messages in TestComplete XML log output ( XML Log, generated by TC in the end of Test Suite execution). I will parse these log files and generate a report from it.
In XML Log each element (project suite, project, testcase) has options to identify any of this element uniquely (using monikers and persistent keys), in different XML logs generated by executing Test Suite multiple times.
I do not see a concrete option to identify a Test Case log message in multiple executions. Is there an option to achieve this?
Scenario-
- A) I have a testcase with two operations. In Project suite XML log, I see xml nodes as message 0, message 1 for both operations (I wish TC would have unique identifiers (Monikers and persistent keys) for each message).
- B) If I modify testcase by adding another operation in between operation 0 and 1, upon execution output XML log will show three messages message 0, message 1 and message 2.
By looking at message 1 in A and B execution outcomes, how to find out if “message 1” is same if both runs or not?
The "messages" you see are the event logging of the actions being performed. Basically, each step that you do in the test potentially could write a record to the log. If you don't deliberately make effort to write your own log records, organize your tests, etc., then that's all you're going to get in the log... a massive, long list of events. It's a log, not a report.