Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
QTP does not recognize Infragistics Toolbar
posted

I also met this problem like mdc999 on QTP version 11. 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

SourceControl developer use are:
    Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea
          Infragistics.Win.UltraWinToolbars.UltraToolbarsManager

Please tell me step by step in detail to solve this problem.
How can i use the GetNAProperty to click a button on the this toolbar ?When i try to use GetNAProperty method, QTP get an error "QTP does not support this method". Please help me ASAP.

 

Thanks

Parents
  • 22852
    Offline posted

    HoaLe,

    What mdc999 reported here 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.

    Since you are having issues with the GetNAProperty method, you should first verify that TestAdvantage is configured correctly.  This can be done by testing playback of the sample scripts and also recording on the sample applications that are included with TestAdvantage.

    The sample scripts are located in the following location:

    C:\Users\Public\Documents\Infragistics\TestAdvantage for Windows Forms (HP) [Version]\Samples\Scripts

    If the samples play back correctly, have you verified that you are using the correct version of TestAdvantage with your application?  The version of TestAdvantage must match the version of NetAdvantage used.

    Let me know if you have any questions with this matter.

Reply Children