Creating a secondary log
Does anyone know if it is possible to create a secondary log in addition to the one TestComplete uses by default?
So in tests we could write to this message related to some application parameters and states so they are not buried in the detail of the main log. This would be supplied to non-technical people.
So in the test we would have something like:
Log_Message_Secondary_Log("Main application opened")
Log_Message_Secondary_Log("Create button clicked")
At the end this could be exported in the same way as normal logs in the event of an error for instance as manual steps to reproduce.
Solved! Go to Solution.
Only one built-in log is possible in TestComplete.
You may consider these options:
a) Write to your own custom log. This can be implemented, for example, within OnLogMessage, OnLogError and so on handlers;
b) Create a folder within test log (Log.CreateFolder) and write to it (copies) of the messages that you need. The problem here is that it is not possible to export/save just this folder but not the whole log, so you will have to find out a workaround that will work for you (learn relevant people to pay attention to just this folder; truncate everything but this folder from the saved log; something else).
/Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
That's what I was suspecting.
Think I'll go with the text file option to compile the simplified logged elements as the test runs.
Then use the on-error event to post the contents of the simplified log to the main log with a screenshot.