Absent Member.. RaghavendraBL Absent Member..
Absent Member..

Our AUT get crashed when Spy/Recored/try to add objects from the UFT

Windows based (CLient server) application getting crashed when we spying or adding object or navigating through our AUT  when the UFT is opened.

UFT Version: 12.0/12.02

Operating system: Windows 7

Application Developed i

Technologies used: WPF 4.5 version

.Net Version used: 4.5 Framework.

Tags (3)
2 Replies
Super Contributor.. ThuyTran Super Contributor..
Super Contributor..

Re: Our AUT get crashed when Spy/Recored/try to add objects from the UFT

Hello Rag, 


Nice day to you. Hope you are doing fine. 


Did your UFT work fine with your application before? Or this is the first time UFT working with it?


Did you try to clean uninstall and re-install UFT? You can refer the following document:

"How to clean uninstall Unified Functional Testing (UFT)?"



Best regards, 

Thuy Tran

Thuy Tran
Software Support Engineer
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution. If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the option at the bottom left of the post and show your appreciation.
Absent Member.. RaghavendraBL Absent Member..
Absent Member..

Re: Our AUT get crashed when Spy/Recored/try to add objects from the UFT

Yes first time we are trying, we have reinstalled and installed couple of times no luck, in fact we have logged the ticket and worked with them more 3 months with support team but provided workaround will not help us so i thought of exposing to larger audience . let me put the overall workaround provided.


Last workaround provided:



There is a problem in your application. It is known bug in WpfToolkit module in DataGrid control. Which was fixed since the DataGrid was reimplemented oficially by Microsoft within .NET4.x. Here some links:





And the UFT forces this problem to happen as it strongly using UI Automation. Given registry key can minimize it in some cases.


But this bug still can happen on replay, especially when recording DataGrid cells with more complex structure, such as comboBox cells and so on.


Below are the only 2 solutions if the error occurs:


1) (Recomended) Switch the application to .NET4 and DataGrid from official .NET4 WPF package (stop using Wpftoolkit library).

2) Implement custom DataGridcell, DataGridRow, DataGridColumn classes, override OnCreateAutomationPeer() and create also customized DataGridItemAutomationPeer and DataGridCellAutomationPeer with overriden GetChildrenCore() to avoid using ResetChildrencache() inside it which calls UpdateChildren() and this lead to crash when it tries to fire automation events.





it is very big application so Just for automation we cannot tell business team to change the framework or development team to change  there way they desined. so please help us to fix it.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.