Forum Discussion

vprabhubalu's avatar
6 years ago
Solved

Using checpoint is it possible to display customized message in result/logs

Whenever a checkpoint is used in script it always displays the standard message in TestComplete logs .   aqObject.CheckProperty(Object, "Enabled", cmpEqual, True) Result:The property checkpoint...
  • tristaanogre's avatar
    6 years ago

    Not using that as it is.

     

    What you can do is, instead, use aqObject.Compare property.  This returns a boolean true/false which you can use to drive further code.  It also supports a "MessageType" parameter which you can set to "none" to supporess automatic messages.  Then, what you can do, if the result returns true, use a Log.Checkpoint call to log your own custom message and, if the result returns false, use Log.WArning or Log.Error to log your own custom message.