Hi Alex,
How would I use Test Complete to check this and stop the script at this point with an error message? |
It depends on the way an error message is displayed in your application. For example, if some application object gains specific error text, you can use the
property checkpoint (
aqObject.CompareProperty). Then, check the returned value and call
Runner.Halt to stop the execution. Below is an example in VBScript:
If(False = aqObject.CompareProperty(<Object's property>, cmpEqual, "error text")) Then
Runner.Halt("There's an error")
End If
If a window containing the error appears, you can use one of the Wait*** methods to check whether this window has appeared.
Also, you can use the
region checkpoint to check whether the form is highlighted or not.