Is there a list available that will cross-reference an Infragistic control to the .NET standard control for QTP? For example, when I record against a Infragistics.Win.UltraWinDock.DockableWindow, QTP records this as a SwfObject. How can I confirm that SwfObject is the correct mapping for this Infragistics control?
Thank you.
Hello,
The best list to cross-reference the type of an object with the TestAdvantage proxies would be to use the SwfConfig.xml file that is located in the DAT subdirectory of the install directory of the QuickTest Professional. This is the file that QuickTest Professional reads on it's startup to match the type of object it sees with any custom proxies that may be written for it. If you are not sure what the type is of the UI control being recorded, I would suggest using QuickTest Professional's ObjectSpy under the Tools menu. Use the pointing hand button, and select the control in question. Once it is selected, under the Properties, there is an swftypename property, its value is the equates to the Type attribute of the Control Xml tag in the SwfConfig.xml file. If you do not find that type in the SwfConfig.xml file, then it is using QuickTest Professional's default implementation. This in the case of a NetAdvantage control would mean that you may need to correct the SwfConfig.xml file.
As to what SwfObject type it maps to, that is also defined in the SwfConfig file, it is the MappedTo attribute of the Control Xml tag. If the MappedTo is not set as it is for the DockableWindow, it will record as SwfObject. This is not an incorrect behavior, while we try to map each control to its best Swf type counterpart, in some cases it is determined that mapping it to something other than SwfObject may negatively impact its behavior. Regardless it is not necessary to map the control type to a swf type to allow the custom proxy to work correctly.
I hope this helps answer your question,
Michael
Infragistics