QTP 11.0 not recognizing objects with the new .NET 4.5 framework
We have QTP 11 installed and we recently upgraded to .NET framework. We are running QTP against a WPF environment. QTP is not recognizing a LIST object. We have a "Policy Menu" which is identified as a WPFList. This list is sort of a bucket for submenus which are created as list objects. In order to select the proper list item, we are using the select method,however, at runtime, it is not opening the respoective policy menu item screen. The only thing that changed in the application that is being tested is how we present the "sub menus". They used to look like buttons but now they were changed to look like a link. We have changed the font and the colors around it but the object type has not changed. QTP used to see it as a WPFButton and we used to use the click method to select the sub menu but now QTP is only recognizing the outside list as "WPFList" and not selecting any of the sub menu items.
We have the following patches installed:
QTP_0069, QTP 00709, QTPNET_00062, QTPWEB_00078, QTPNET_00113, QTPNET_00116, QTP_00925, QTPNET_00127, and QTPNET_00120.
•If you want to work with .NET 4.0, it is best to install it before you install QuickTest. If you install .NET 4.0 after you install QuickTest, you must manually register two .NET DLLs as follows:
In <QuickTest installation folder>\GlobalAssemblyCache\Net4, execute the following commands:
•..\..\bin\GACRegUtil4x86.exe -i Mercury.QTP.Agent.dll
•..\..\bin\GACRegUtil4x86.exe -i Mercury.QTP.WpfAgent.dll
This fix may also work for you for .NET 4.5 installed after QTP. However. .NET 4.5 is not listed in the Product Availability Matrix for QTP 11.0 as a supported product.
(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)