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 ?
HoaLe,
What mdc999 saw isn't an issue and is the expected behavior. As far as clicking the button tool, GetNAProperty is not the correct method to use as it gives access to properties of the .NET object. The easiest way to see what script is needed to click the button tool would be to record clicking on the button tool and see what gets recorded.
MaulikC,
The GetNAProperty method will provide properties of the UltraToolbarsManager class. Depending on what you mean by all of the panels in a toolbar will determine what the correct properties to get are. To help you determine this I would recommend reading the Understanding the WinToolbarsManager section of the help:
http://help.infragistics.com/NetAdvantage/WinForms/Current/CLR2.0/?page=WinToolbarsManager_Understanding_WinToolbarsManager.html
This should give you some idea of how the WinToolbarsManager is structured. In addition to that you may want to work with your developers to help you determine what properties you need to know about as they are familiar with your application and how the WinToolbarsManager was used.
Let me know if you have any questions with this matter.
Alan Halama"] So in your case you need to base your GetNAProperty off of the UltraToolbarsManager class and not the UltraToolbarsDockArea.
Hi,
I am facing a similar issue. I am trying to get the count of all the panels in a toolbar using GetNAProperty("Controls.Count") method, but I am getting an error "<IG : Member [Controls] not valid>" The object has following property swftypename:=Infragistics.Win.UltraWinDock.WindowDockingArea and is identified as SwfObject by QTP. How can I check the child class which supports GetNAProperty method?
Regards,
MaulikC