.NET Windows Presentation Foundation (WPF) Add-in

Use the UFT One Windows Presentation Foundation (WPF) Add-in to test WPF (Windows Presentation Foundation) user-interface objects (controls).

General Information

Add-in Type

This is a Windows-based add-in. Much of its functionality is the same as other Windows-based add-ins.

Supported Environments

For details on supported Windows Presentation Foundation environments, see the WPF Add-in section of the UFT One Support Matrix.

Test Object Methods and Properties

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

Important Information
  • You can test most custom WPF controls inherited directly or indirectly from the System.Windows.Controls.Control class regardless of which language was used to create the application (for example, Visual Basic, .NET, C#), as well as third-party WPF controls that are inherited from the System.Windows.Controls.Control class and implement automation interfaces.

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

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

Child Add-ins

UFT One version 2023 and later:

DevExpress Data Grid controls are supported by the WpfDXGrid test object. This test object is part of the DevExpress WPF child add-in and not the WPF Add-in itself.

The DevExpress add-in is installed as part of the WPF add-in. However, by default, this add-in is not loaded. To create test steps on DevExpress Data Grid objects, select the DevExpress add-in when you open UFT One. For details, see the WPF > DevExpress section of the UFT One Object Model Reference for GUI Testing.

Note: Recording is not supported on DevExpress Data Grid controls.

Extending the WPF Add-in

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

Known issues Known Issues - .NET WPF

Opening Your Application

You can open your WPF application before or after opening UFT One.

Add-in Dependencies

The Web and .NET Add-ins must be installed.


Configuration Options

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

Record and Run Settings

Use the Windows Applications tab.

Custom Active Screen Capture Settings

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

Application Area Additional Settings

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

See also: