Forum Discussion

Soulman's avatar
Soulman
New Contributor
9 years ago

How can I get an event or error message that was written to the log- window

Hi all,

 

in my testing script I need to create an own log of the testexecution. Therefore I write my own csv- file. It's not a problem to check the result for "aqObject.CheckProperty", but for Object.click there is no return value. So my Idea is to get the message which is written in the Testlog.

Example output in teslog:

Type: Event

Messag: The windo was clicked with the left button.

 

Now my question is how I can get this message that is written in the Test- Log?

 

Regards

 

3 Replies

  • I know you're asking how to create your own log, but before I answer, why is it that you want to create your own log with the same information as default log TestComplete provides?

  • Soulman's avatar
    Soulman
    New Contributor

    I need a custom log because another interface is excpecting a special format. I need to do an automatical analysis of the test results and therefor it is the easiest way to handle a csv and not the testcomplete log

    • NisHera's avatar
      NisHera
      Valued Contributor

      You can manupulate "onlogEvent" in general events to do that.

      How to hanle events  is hear

      More info about "onlogEvent" read this

      Also this would be usefull