Forum Discussion
rraghvani
Champion Level 3
EkremMese1
4 days 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..
- rraghvani4 days agoChampion 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
- EkremMese14 days 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_Ballan4 days agoContributor
Add else to your if statement and add log message to it.
IF variables are not equal
Log error
Stop
Else
Log message
Related Content
- 3 years ago
- 10 years ago
Recent Discussions
- 2 hours ago