.NET Windows Forms Add-in

Use the UFT One .NET Add-in to test .NET Windows Forms user-interface objects (controls).

The following tables summarize basic information about .NET Windows Forms application support and how it relates to some commonly-used aspects of UFT One.

General Information

Add-in Type

The .NET Windows Forms testing support functions like a Windows-based add-in. Much of its functionality is the same as other Windows-based add-ins.

Supported Environments

For details on supported .NET Windows Forms environments, see the .NET Add-in section of the UFT One Support Matrix.

UFT One version 2023 and later: 

.NET 5 and 6 are supported as a Technical Preview.

Some test objects supported in earlier .NET versions, such as SwfPropertyGrid, SwfToolBar, SwfTable, and SwfStatusBar, will not be identified in these new versions.

To support these test objects, you can try using UIA Pro.

Important Information

  • You can test most custom .NET controls inherited from System.Windows.Forms.Control regardless of which language was used to create the application (for example, Visual Basic, .NET, C#).

  • UFT One version 2023 and later: You can test .NET controls regardless of what Windows display scaling (DPI) you use.

    Some methods may not work correctly when you use Windows scaling settings other than 100%. See Windows display scaling (DPI).

Test Object Methods and Properties

The .NET Add-in provides test objects, methods, and properties that can be used when testing objects in .NET Windows Forms applications. For details, see the .NET Windows Forms section of the UFT One Object Model Reference for GUI Testing.

Extending the .NET Add-in

.NET Add-in extensibility enables you to develop support for testing third-party and custom .NET Windows Forms controls that are not supported out-of-the-box by the UFT One .NET Add-in.

Known issues Known Issues - .NET Windows Forms
Prerequisites

Opening Your Application

You must open UFT One before opening your .NET Windows Forms application

Add-in Dependencies

The .NET Add-in must be installed.

Configuration

Configuration Options

Use the Windows Applications pane.
(Select Tools> Options > GUI Testing tab > Windows Applications node).

Record and Run Settings Dialog Box

Use the Windows Applications tab.

If you select the Record and Run only on radio button in the Record and Run Settings dialog box, the settings also apply to (limit) the applications that are recognized for the .NET Windows Spy, the Object Spy, and other pointing hand operations.

Custom Active Screen Capture Settings Dialog Box

Use the Windows applications section.
(Tools > Options > GUI Testing tab > Active Screen node > Custom Level)

Application Area Additional Settings pane

Use the Applications pane.
In the application area, select Additional Settings > Applications in the sidebar.

See also: