The control definition file can contain a Record element in which you define the customized recording for the control and a Replay element in which you define the customized test object methods.
The Record element specifies the control events for which you want UFT One to add steps to the test (or component) during a recording session. The steps are calls to test object methods of the custom control's test object.
The Replay element specifies the operations that UFT One should perform on the control for each test object method during a run session.
You do not always need to enter both a Record and a Replay element:
If the Test Record implementation for the custom test object should be different than the one defined for the existing test object, create a Record element in the control definition file for the custom control.
Similarly, if the Test Run implementation for the custom test object should be different than the one defined for the existing test object, create a Replay element in the control definition file for the custom control.
If you create a Record element, the definitions replace the Test Record implementation of the existing test object entirely. If you create a Replay element, it inherits the Test Run implementation of the existing object and extends it. For more information on test object mapping options, see Map the Custom Controls to the Relevant Test Objects .
For information on the elements in a control definition XML file, see the .NET Add-in Extensibility Control Definition Schema Help).
See also An Example of a Control Definition File.