Analyzing the Custom Controls

You can run an application containing the custom control and analyze the control from a UFT perspective using the .NET Windows Forms Spy, the Keyword View, and the Record option. This enables you to see how UFT recognizes the control without custom support, and helps you to determine what you want to change.

Using the .NET Windows Forms Spy

You can use the .NET Windows Forms Spy to help you develop extensibility for .NET Windows Forms controls. The .NET Windows Forms Spy enables you to:

You access the .NET Windows Forms Spy by choosing Tools > .NET Windows Forms Spy in the main UFT window.

Note: To spy on a .NET Windows Forms application, make sure that the application is running with Full Trust. If the application is not defined to run with Full Trust, you cannot spy on the application's .NET Windows Forms controls with the .NET Windows Forms Spy. For information on defining trust levels for .NET applications, see the relevant Microsoft documentation.

For more information on the .NET Windows Forms Spy, see the Micro Focus Unified Functional Testing Add-ins Guide.

When you plan the support for a specific control, you must ask yourself a series of questions. You can find a list of these questions in Using the .NET Add-in Extensibility Planning Checklist. When you are familiar with the questions and you are designing your own custom support classes, you can use the abbreviated, printable checklist .