How to Install WPF Add-in in UFT

If you’re reading this post, most likely you’ve installed UFT and planning to play around with UFT Sample Application or a .Net application but UFT is not recognizing the objects, and now you are wondering how to sort out this issue.

If you want to play around with the HPE sample Flight application or any other application that is based on Windows Presentation Foundation (WPF), you will have to install WPF add-in in UFT otherwise UFT won’t recognize its object. If you have already installed UFT and want to install the WPF add-in, please keep reading this post. In this blog post, I’ll show you how you can install WPF Add-in in UFT.

Steps to install WPF Add-in in UFT

Step1: Open Control Panel and go to the Uninstall and Change Program. Then select the HPE Unified Functional Testing or select Microfocus Unified Functional Testing depending on the version you have installed and click on the “Change” button.

control-panel-change-software

Step 2: The below window will appear. Click on the “Next” button

Uft-setup-changes

Step 3: Now Click  on the “Change” button

wpf-addin-installation-uft

Step 4: Custom Setup window would be displayed. Scroll down to.Net Add-in. Expand it and select WPF add-in to get it installed.

install WPF Add-in

Step 5: After selecting the WPF add-in click on the “Next” button.

Step 6: UFT Configuration window will be displayed. Click on the “CHANGE” button

wpf-addin-installation-uft-3

Step 7: Setup Wizard will start installing the add-ins.

wpf-addin-installation-uft-4

Step 8: After completion of the setup click on the “Next” button and open the UFT application.WPF add-in would be visible in the Add-in Manager window. Select the checkbox against WPF add-in

wpf addin installation uft-5

Now UFT will start recognizing objects of Flight application. You can check this using the object Spy utility available in UFT.
 
If you do the recording, you can see UFT identifies each object and map it to the corresponding WPF class rather than the Window object.
wpf-addin-installation-uft-6

Recommended Posts

Leave a Reply