Custom log priorities
Our test logs from script tests are often very detailed. In some cases it would be useful to filter out some of the lower priority log elements. I see that this can already be done after exporting to html. In the tests, we can define the priorities of Log methods, like Log.Event, Log.Checkpoint and Log.Error. However, when we use TestComplete's buildt-in methods like aqObject.CheckProperty or button.Click, Testcomplete auto-generates log messages of normal priority. Is there a way we can change the priority of these log messages?
Solved! Go to Solution.
You cannot change the priority of auto-generated messages, but you can optionally place such messages in a folder created with the required priority and other attributes. To do this, however, you will have to change the structure of your tests and grammatically integrate 'Log' object.
Pay attention to this function: Log.AppendFolder(MessageText, Details, Priority, Attr, OwnerFolderID)