We have recently updated the GUI in our apps to use CommandBar menus, dockable windows etc. I am aware that QTP recognizes them as just WinObject. I don't want to use 'point and click' methods as it removes some of the functionality I need.
What I would like to know is how other QTP users have tackled this problem and whether anyone has come across either a way of adapting QTP or the application code to make the test script more meaningful - e.g I need to be able to select a view window by name from the menu (but they are not always listed in the same order and if an extension is licensed it adds items to the menu).
I have tried mapping the toolbars and menubar using mapping tools and record, but they only show up as WinObject. The caption/text/regexpwndtitle is fine as it distinguishes each toolbar and menubar, but the problem lies in being owner drawn controls.
For instance, one way we are attempting to address the issue of illuminating menuitems is to use a SendMessage call interface in the application code. If it works I should be able to interrogate menuitem text, enabled and checked properties and perhaps select method.
This is the kind of thing I was hoping to find advice on. Has it worked for other testers? Is there a better way?