Forum Discussion
mazhar555
16 years agoContributor
Hello,
You can use LogParams Object inside OnLogMessage Event.
LogParams.Str Specifies the text posted to the test log. (TC Help)
LogParams.Locked Specifies whether the posting of a message to the test log will be cancelled. (TC Help)
Here is the sample code
VB Script
Sub GeneralEvents_OnLogMessage(Sender, LogParams)
messageString = "The property value ""True"" equals the baseline value ""True""."
If LogParams.Str = messageString Then
LogParams.Locked = True
Log.Message "My Custom Message"
End If
End Sub
Regards,