| || |
Programatically Accessing the Object Map
I know that some of these questions may have been answered before, but I need to make sure I am absolutely clear.
1. Can you programatically identify objects (and add them to the object map) from an application i.e. using VBA.
2. Can you programatically access the object map i.e. get all buttons from the object map then test to see if any of them exist on the current window. Or check the map for duplicate objects with different names.
Re: Programatically Accessing the Object Map
There was a feature in QARun that let you do this on a per-form basis but I don't believe that there is any way of accomplishing it in TP. Even if you used another VBA application with a referrence to the TestPartner.tlb it wouldn't understand what to do with any of the objects.
All the information for the objects is processed through TestPartner and then stored in binary form in the TestPartner repository. So the second question is likely out as well.
You could however use a property check to verify that everything on a page or form is as it should be. These can be created dynamically or as assets and should provide all for each object as to if their properties have changed or if they exist and can be verified in the execution result.