Unexpected behaviour of QTP in recognizing objects
We are facing a very peculiar problem while recognizing only certain objects in application through QTP and from the analysis which we have done, it has come to our notice that:
the QTP is able to recognize those certain objects if QTP is launched before opening the application
But if the application is opened first, and then QTP is launched then it fails to recognize certain objects.
Re: Unexpected behaviour of QTP in recognizing objects
It is not fixed even with QTP 9.5 and its difficult to fix as well future (not sure about 10.0)
to perform any action to AUT every tool needs to hijack it for e.g. how vbscript GetObject works, but what if two or more similar objects are already open?
In case of QTP Object identification based on COM architecture, it worked with many different types of applications e.g. windows, java and web etc withing windows environment, so for QTP every object is first window object if those are already opened sometime we see.
Java object as windows objects
Oracle objects as Java object
Web browser object as win objects etc.