Understanding How to Create Support for a Custom Delphi Control

You can create a custom toolkit support set to extend the UFT One Delphi Add-in, and to teach UFT One to recognize Delphi user interface controls that the Delphi Add-in does not recognize out-of-the-box.

A custom toolkit support set consists of the following items:

  • Required: A toolkit configuration XML file, in which you map the custom controls to test object classes (either existing Delphi test object classes or new ones that you define).

  • Optional: A test object configuration XML file, in which you define the test object classes that will represent your custom controls in UFT One tests and components.

    You do not need to define a test object class to represent a custom control if an existing Delphi test object class has all of the necessary test object methods and identification properties.

  • Optional: A Delphi unit of extensibility code, in which you develop an Agent Object for every type of control that you want to support, as well as a factory function that creates these Agent Objects.

    You do not need to create an Agent Object for a control that can be adequately supported by mapping to an existing Delphi test object class. You need to create an Agent Object in the following situations:

    • You map the custom control to a new (custom) test object class.

    • You map the custom control to an existing test object class, but you want to override the implementation of a test object method or provide the value of an identification property.

    • You are creating support for a custom grid control.

For more information, see: