I have gone through the help manual of the test partner, I have few doubts on the below items. Please let me know any one of you have idea.
1.) When I copied below code in the test script asset type . Iím getting an error refer attached screen shots.
Dim ret As Boolean
' Load the event and activate it.
ret = Whenever("F9 Key Event")
If ret = True Then
MsgBox "F9 Key Event is active"
' Keep the whenever active.
MsgBox "F9 Key Event could not be activated"
' function and how it handles the event.
Private Sub Script_Whenever(ByVal TheEvent As TPEvents.TEventGroup)
MsgBox "F9 pressed for " & TheEvent.Name
2.) Can you also give some example like when we will go for Whenever event type usage.
Did you create an event named "F9 Key Event"? The eventName is a required parameter: EventName
This is a name referring to the event. The event can be created in code or retrieved from the database.
A problem is a difference between what is perceived and what is desired, that
we want to reduce (Dewey 1933)