Ravik
11 years agoSuper Contributor
Log.LockEvents() method not worked with Decriptive Programming in TC
Hi Team,
I am using Descriptive programming in TC, I have define a common function for Click on Button in Unit A
Like
I am using Descriptive programming in TC, I have define a common function for Click on Button in Unit A
Like
Function ClickButton(btn_objName)
Log.LockEvents()
btn_objName.Click
End
Function
I am using this function in my Script
Like
Sub Test
Log.LockEvents()
Call ClickButton(OK)
End Sub
While running script it is posting log in to a TestResult
But same works fine when I am writing simple code.
Sub LockEvents()
' Disables posting events
Log.LockEvents()
Log.Event("This message won't be posted to the test log.")
' Enables posting events
Log.UnlockEvents()
End Sub.
Please help me what I am missing here ..