Mercury.QTP.CustomServer Namespace : EventsListenerBase Class |

A custom server that uses assistant classes derived from CustomAssistantBase must implement the following methods in the classes derived from EventsListenerBase
:
- InitEventListener
- ReleaseEventListener
'Declaration
<System.Runtime.InteropServices.ComVisibleAttribute(False)> Public MustInherit Class EventsListenerBase
[System.Runtime.InteropServices.ComVisible(false)] public abstract class EventsListenerBase
System.Object
Mercury.QTP.CustomServer.EventsListenerBase
Name | Description | |
---|---|---|
![]() | SourceControl | Returns the source control object. |
Name | Description | |
---|---|---|
![]() | Init | This method supports the UFT infrastructure. Do not call it directly in your code. |
![]() | InitEventListener | Called once by the UFT infrastructure to start listening for events. Override this method, adding subscriptions to the events to which you need to listen. |
![]() | ReleaseEventListener | Releases event handlers not added using AddHandler. |
Name | Description | |
---|---|---|
![]() | AddHandler | Adds an event handler. If other handlers exist for the event, the handler added with AddHandler is called first. |
![]() | InvokeCustomServer | Invokes a method of the Custom Server that is running in the UFT context. |
![]() | RecordFunction | Writes a test object method call to the test script. |