UFT One User Discussions

OpenText UFT One


If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it! Learn more

This discussion has been locked.

You can no longer post new replies to this discussion. If you have a question you can start a new discussion

.NET objects not getting identified

I am using QTP 11 on a Win 7 SP1 x64 machine. The .net addin is not recognizing the objects as Swf. All .net objects are identified as WinObject. I tried installing the patches QTP_00699 and QTP_00709 but that did not help. I tried reintalling the app but still the same issues exist.

I am trying to use Object Spy on an Infragistics controls application. I also have the required Infragistics version 8.3 CLR2.0 addin from TestAdvantage installed on my machine. I just cannot identify any object as Swf. Please advice.

Are .NET add-ins installed?

@MVCHOW: From what the owner said, yes.

@nikhilsharmans: just to confirm, do you launch/run your application under test after QTP? Can you try with Tools>.Net Windows Form Spy to see whether it recognizes anything? And could you put a screenshot here?

Yes MVCHOW, I have the .NET addin selected. HaiTNguyen , Please view the attached screenshot of an object spy on the application login page.

I would expect a "SwfButton" instead of the "WinObject". I really don't understand what should I do next. (I had read about some patches being able to resovle these kind of problems but I don't know the names/versions of those patches). Any help on this appreciated. Thanks !

There is a cumlative patch QTPNET_00120 you could try. .NET can be aggrevating. When I get your error, it is generally because I opened the application before qtp. Good luck

There is a cumlative patch QTPNET_00120 you could try. .NET can be aggrevating. When I get your error, it is generally because I opened the application before qtp. Good luck

There is a cumlative patch QTPNET_00120 you could try. .NET can be aggrevating. When I get your error, it is generally because I opened the application before qtp. Good luck

There is still 1 question left from my post, I'm wondering if you launch your application before QTP. It should be launched after QTP is completely launched. Running that way QTP is able to hook application.

Could you try following things?

1. Check your Run>Record and Run Settings, Windows Application tab. Make sure you select the first option: Record and run on any Windows-based application.
2. If it doesn't work, try to modify registry

HKCU\Software\Mercury Interactive\QuickTest Professional\MicTest\HooksMgr\DllInjector

Add new Key with the name of your application, e.g. calculator.exe

In that key, add new DWORD 32b, name: Enabled, value: 1

Then try to restart QTP and your application and see if it can recognize.

I tried the options that you asked me to. I am opening the application after QTP (also tried launching by system.util) and the object recognition is also being run for Record and Run on any Windows based applications.

I could not try the regedit method as my system does not have admin privileges. Please suggest any other alternatives you might be knowing.

As suggested by HaiTNguyen , Can you give it a try using the QTP .Net Windows form Spy?

To launch the .Net Windows form Spy, either use the shortcut 'ctrl Shift T' or Tools -> .Net Windows form Spy menu.

Hi Nikhil, if you don't have admin privileges on that machine then it would be a little difficult to troubleshoot then.

Resources

Compliance Privacy Policy
Terms of Use
Cookie Preferences Cookies Preferences

Follow Us

Copyright © 2024 Open Text

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