Forum Discussion
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..
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
- EkremMese13 months 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_Ballan3 months agoContributor
Add else to your if statement and add log message to it.
IF variables are not equal
Log error
Stop
Else
Log message - rraghvani3 months agoChampion Level 3
Have you read the documentation that I have provided?
I suggest you try a small example, so that you understand how the method works, what results you get etc. Otherwise I suggest you read through https://support.smartbear.com/testcomplete/docs/tutorials/getting-started/index.html
- JDR25003 months agoFrequent Contributor
In MW_Didata's fine example substitute Log.Checkpoint for Log.Message in the second line and you'll get the green passing message you want when the strings match.
Related Content
- 4 years ago
- 11 years ago
Recent Discussions
- 2 days ago