I am testing an application written in C++ using MFC. When I use Object Spy to look at a GUI element's RO properties, Object Spy reports that there are no RO properties to report. How can this be? Certainly QTP is able to see the RO properties of my application; otherwise, it would have no way of finding the run object that my test object is referring to. In other words, in order for QTP to match a test object to a run object, it must be able to see the run object's properties. So, why is Object Spy reporting that it cannot display any?
I believe you are using an older version of QTP(<10.0). It was perhaps a misnomer on HP's part to call them "Run-time Object Properties" (which they have, quite rightfully, changed to "Native" in the more recent versions of QTP).
The methods and properties under the "Test Object Properties" tab can be retrieved by using "GetROProperty" while the ones that show up under the "Run-time Object Properties" tab are in fact native class properties that can be retrieved using the "Object" Property. Native class properties and methods are the ones that are defined by the creator of the object and are accessed by QTP through the application's API. If the application doesn't provide such an API or QTP doesn't support it, no properties will show up in the "Run-time Object Properties" tab. Another example: Mainframe applications. Hope this hepls.