Control Definition XML Overview Schema
This Help file describes the elements and attributes available for creating the control definition XML files for your .NET add-in extensibility project.
Most Custom Servers are implemented as a .NET DLL. Another coding option to extend support for custom .NET Windows Forms controls is by creating a control definition XML file for each custom control.
You can implement custom control support without programming a .NET DLL by entering the appropriate Test Record and Test Run instructions in control definition XML files (one for each control). You can instruct UFT to load the instructions by specifying the names of the control definition XML files in the UFT Windows Forms Extensibility Configuration file, SwfConfig.xml.
- A Record element if you want to customize recording on the control. A Record element includes Event elements in which you define how to record steps for different events that occur on the control.
- A Replay element if you want to customize how test steps are run on a custom control. Each Replay element must include a Method element that specifies both Parameters and the MethodBody (implementation code) for the test object method you are customizing.
Element | Description |
---|---|
Customization | The root element. |
Event | The instructions for adding a step to the test or component when an event occurs on the control during a recording session. |
Events | A collection of Event elements. |
Method | The implementation for a customized test object method. |
MethodBody | A series of C# instructions to perform on the custom control when the test object method is called during a test run. |
Methods | A collection of Method elements. |
Parameter | A test object method argument. |
Parameters | A collection of Parameter elements within a Method element. |
Record | The instructions for customized recording on the control. |
RecordedCommand | The step that UFT should add to the test when the event described in the parent Event element occurs. |
Replay | The instructions for running customized test object methods on the control. |