Forum Discussion

vthomeschoolmom's avatar
vthomeschoolmom
Super Contributor
6 years ago
Solved

CheckProperty and the text in the log

  CheckProperty(tbl, "RowCount", cmpGreaterOrEqual, 1); yields the text  "The property checkpoint passed: RowCount is greater than or equal to 1."   I would like to change this text and leave t...
  • tristaanogre's avatar
    6 years ago

    There is an OnLogCheckpoint event handler available in TestComplete.  Basically, when you log the checkpoint, it fires that event.  You can then assign code to the event to execute each time the event fires.  Within that code, you can intercept the text of the message and change it before writing it out to the log.

     

    https://support.smartbear.com/testcomplete/docs/testing-with/advanced/handling-events/creating-handlers/for-testcomplete-events.html

  • tristaanogre's avatar
    tristaanogre
    6 years ago

    Because it's an event intercepting the writing of a record to the log, it only has available to it whatever is in the process of writing that log record.  String processing is your best bet.