Open topic with navigation
To create the extensibility Delphi unit that you develop to support your custom controls, use the template unit provided with the Delphi Add-in: <UFT installation folder>\dat\Extensibility\Delphi\ExtensibilityImplementationTemplate.pas
In your extensibility code you must do the following:
Import and use the AgentExtensibilitySDK unit provided with the UFT Delphi Add-in: <UFT installation folder>\dat\Extensibility\Delphi\AgentExtensibilitySDK.pas
Design an Agent Object for each type of control that you want to support. The Agent Object must inherit from TMicAO or one of the other Agent Object base classes defined in the Delphi Add-in Extensibility SDK. In the Agent Objects, develop published properties that support the test object methods and identification properties required for your controls. For more information, see Working with Published Properties to Support Test Object Methods and Identification Properties.
Create a factory function that receives an object reference of a Delphi user interface control and returns a new Agent Object. The factory function must be able to recognize the custom controls for which you are creating support, and create the appropriate Agent Object.
In the initialization section of your extensibility unit, call the AddExtensibilityServer API function to register your factory function to the Delphi Add-in.
For more information, see <UFT installation folder>\dat\Extensibility\Delphi\AgentExtensibilitySDK.pas.
Before you can run the support that you develop, you must compile the Delphi application you are testing with the extensibility unit you designed and with the Delphi Add-in precompiled agent. For more information, see Deploying the Toolkit Support Set.