Micro Focus QTP (UFT) Forums
QTP doesn't identify C# objects OR interrupts windows messages? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: QTP doesn't identify C# objects OR interrupts windows messages? (/Thread-QTP-doesn-t-identify-C-objects-OR-interrupts-windows-messages)



QTP doesn't identify C# objects OR interrupts windows messages? - Nom1fan - 09-10-2012

Hi all, first post.

In the company I work at we have a product that used to run QTP with no issues at all, until a major version upgrade was made. That's where the issues started occurring.

What changed:
The login procedure used to be a separate .exe file that returned an exit code to the main .exe file.

In the new version, the login is simply a window inside the main .exe file, and the login process communicates with the main process using windows messages.

The issues (a bit complex):

1) While QTP is in the background, and its 'Record and Run Settings' are set to 'Record and run test on any open Windows-based application' -> On the one hand, all objects are identified properly (as C# SWF objects). On the other hand, for some reason the username that is received from login arrives as null (seems that, with these settings, QTP somehow "blocks" or "steals" the WINMSG)

2) While QTP is in the background, and its 'Record and Run Settings' are set to 'Record and run only on: Applications opened by QuickTest, Applications opened via the Desktop (by the Windows shell)' -> On the one hand, all objects are identified improperly (as WinObjects instead of SWF objects). On the other hand, the username that is received from login arrives properly.

I turn to you because, frankly, I'm a bit desperate. I've tried every solution that I could find suggested out there on the web. Nothing worked.

Please, I would gladly accept any suggestion.

I am working on QTP v10.0, on WinXP SP3 English.

Thanks in advance.