Ask a Question

Custom log priorities

SOLVED
Elias
Regular Visitor

Custom log priorities

Hi,

 

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?

1 ACCEPTED SOLUTION

Accepted Solutions
A_Roskoshnyi
Community Leader

Re: Custom log priorities

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(MessageTextDetailsPriorityAttrOwnerFolderID)

View solution in original post

1 REPLY 1
A_Roskoshnyi
Community Leader

Re: Custom log priorities

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(MessageTextDetailsPriorityAttrOwnerFolderID)

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: