Forum Discussion
Abramova
Staff
14 years agoHi Praveen,
You can use the Log.Error method to post error messages to the test log. To post informative messages, use the Log.Message method. For example, you can use the following code:
If (condition) Then
Call Log.Message("Success.")
Else
Call Log.Error("Failure.")
End If
In order for TestComplete not to stop the test execution when an error is posted to the log, disable the Stop on error option.