I am using TestAdvantage 9.2. I verified that the developers are using NetAdvantage 9.2. The application I am testing has an Infragistics ribbon toolbar at the top. When I use object spy or do a recording, QTP seems to see the object as a generic object: SwfWindow("Prog1 Version 1").SwfObject("_FormMain_Toolbars_Dock_Area_T"), therefore I cannot get to any of the groups, tabs, buttons etc. Here is some of the info from object spy:
Native class: WindowsForms10.Window.8.app.0.bcedc3
Swfname: _FormMain_Toolbars_Dock_Area_Top
Swfname path: _FormMain_Toolbars_Dock_Area_Top;FormMain
Swftypename: Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea
Is this a problem with configuration within QTP or would this be something the developers did?
What QuickTest Professional(QTP) is telling you is correct, the control is an UltraToolbarsDockArea. What your developer added to the form is the UltraToolbarsManager component and likely added Toolbars and Tools to it. The problem lies in neither the UltraToolbarsManager, the Toolbars, like the Ribbon, nor the Tools are actually controls, and QTP only interacts with the Controls it finds.
That being said, QTP should record and replay fine with the correct TestAdvantage proxy installed to match the version of NetAdvantage used in the Application Under Test(AUT). One thing that should be metioned though if you are intending to use GetNAProperty. In most cases you can follow the following basic steps, you can look at the objects SwfTypeName in the Object Repository or ObjectSpy, and from that type name you can look up members through help.infragistics.com and pull up the API docs of that class. Which appears in some manner that is what you did. The problem lies in the following few control classes in which GetNAProperty use the indented root object as a basis instead of the SourceControl as they are what are dropped on the form by a developer: Infragistics.Win.UltraWinDock.DockableWindow Infragistics.Win.UltraWinDock.UnpinnedTabArea Infragistics.Win.UltraWinDock.WindowDockingArea Infragistics.Win.UltraWinDock.UltraDockManager Infragistics.Win.Misc.UltraDesktopAlertWindow Infragistics.Win.Misc.UltraDesktopAlert Infragistics.Win.UltraWinTabbedMdi.MdiTabGroupControl Infragistics.Win.UltraWinTabbedMdi.UltraTabbedMdiManager Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
So in your case you need to base your GetNAProperty off of the UltraToolbarsManager class and not the UltraToolbarsDockArea. So to answer your question, if it is recording and replaying fine than your configuration is fine, and your developers did nothing wrong.
I also met this problem like mdc999 on QTP version 11. please tell me step by step in detail to solve this problem.SourceControl developer use are: Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea Infragistics.Win.UltraWinToolbars.UltraToolbarsManagerHow can i use the GetNAProperty to click a button on the this toolbar ?