Forum Discussion
rraghvani
Champion Level 3
2 years agoEkremMese1
2 years 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..
- rraghvani2 years 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
- EkremMese12 years 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_Ballan2 years 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