Forum Discussion

ringraham's avatar
ringraham
Contributor
9 years ago
Solved

How to compare two numbers, log error if fail to be equal, and stop test

Hi All. I realize this should be really simple, but I'm just not seeing how to do this with TestComplete. Instead of doing an aqObject.CheckProperty(...) I want to do something like a aqNumber.CheckV...
  • Marsha_R's avatar
    9 years ago

    I didn't find anything built in to do what you described.  I would use something like this:

     

    If (valueA <> valueB) then

      Call Log.Error("They don't match.", "")

      Call Runner.Stop

    Endif