Forum Discussion
rraghvani
Champion Level 3
1 year agoEkremMese1
1 year agoContributor
But this just giving a result as -1, 0 or 1 I need my test to fail at that point and see a failure log in Script Test Log
just like aqObject.CheckProperty or OCR.Recognize.CheckTest methods..
- rraghvani1 year ago
Champion Level 3
Check the result, and output the appropriate message using either Log.Error(), Log.Warning() or Log.Message(). Or use https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqobject/compareproperty.html
- EkremMese11 year agoContributor
What if I like to make the test passed in certain condition? Let's say I want to see a log like this in Script Test Log:
- Hassan_Ballan1 year ago
Champion Level 3
Add else to your if statement and add log message to it.
IF variables are not equal
Log error
Stop
Else
Log message