Forum Discussion

forrestaustin's avatar
forrestaustin
Contributor
7 years ago

How can I write custom checkpoints in script

Hello,

 

Is there a way to write more customizable checkpoint properties.

 

Instead of something like:

aqObject.CheckProperty(WPF_Control,"Text",cmpEqual,"Some Text") - This is simply what you would get by manually recording a test, verifying a control has some certain text and then converting this keyword test to a script.

 

I would like get a property from a control and perform some action on it, then create a new checkpoint based off this.

 

A contrived example would maybe be to get the value from a textfield and then see if it is divisible by 5. If it is then have a checkpoint that says it passed and if not have the checkpoint fail.

 

Does anyone know how to do this in TestComplete?

 

 

 

  • forrestaustin's avatar
    forrestaustin
    7 years ago

    ok I'm dumb. It was as simple as Log.Checkpoint("Checkpoint message")