Skip to content

Infragistics Community Forum / Test Automation For Micro Focus Uft Windows Forms / UFT is not recording the actions triggered on Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea

UFT is not recording the actions triggered on Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea

New Discussion
Ramrati D
Ramrati D asked on Jun 29, 2016 3:11 PM

HI ,

I am doing a automation POC on .NET application which has used Infragistics controls using UFT 11.50. I am using Infragistics evaluation ADD-in

.Net application which i am working has ‘Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea’ control which has many buttons. When i click on a toolbar button it will display a floating screen.

My Issue is, UFT is recording or recognising the toolbar buttons. Could you please help me in resolving this issue.

Thanks,

Sign In to post a reply

Replies

  • 0
    Michael DiFilippo
    Michael DiFilippo answered on Jun 19, 2014 2:28 PM

    Hello Ramrati,

    Thank you for reporting this to us. At this time may I ask if you can provide some additional information about your current testing environment and your AUT. Keep in mind that to use TestAdvantage, you are required to install patch (UFT_00001) aka UFT 11.51, .NET Add-in

    1. What version of Infragistics is your AUT used with? 2. Which version of TestAdvantage are you currently using with your AUT?

    To obtain the full version of NetAdvantage used in the AUT (application under test) you can look at the version of the NetAdvantage assemblies provided with the AUT or you can ask your developers. To obtain the version from an assembly, right click the assembly in Windows Explorer and select Properties. On the Properties dialog, from the Version tab, look for the Assembly Version.

    The full version of TestAdvantage being used can also be obtained from the assemblies. By default the TestAdvantage assemblies are located in the "C:\Program Files\Infragistics\TestAdvantage [version]\Bin" folder.

    Have the samples that ship with TestAdvantage work as intended? (record/playback)? They can be found in their default directory C:\All Users\Public Documents

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

     

    • 0
      Ramrati D
      Ramrati D answered on Jun 19, 2014 5:08 PM

      Hi Michael

         Thank you very much for your immediate response. 

         I tried to record my AUT without Infragistics add in. I didnt find any difference in the script for with add in and without add in.

         Could you please help me understand where Infragistics add in would fit

      Thanks 

      • 0
        Michael DiFilippo
        Michael DiFilippo answered on Jun 19, 2014 7:43 PM

        Hello Ramrati,

        HP's QTP products should record at the very least (x, y) corrdinates if TestAdvantage is disabled by using the toggling it off in the version utility. I would consult with HP to figure why your AUT is not recording properly without using TestAdvantage.

        Keep in mind that you are required to select and install the .NET add-in when you first installed QTP to properly record and playback scripts any Windows Forms application.

         

      • 0
        Ramrati D
        Ramrati D answered on Jun 25, 2014 5:42 PM

        Hi 

        I am trying to retrieve cell value from an Infragistics ultragrid win control. I could get column header name. But getting difficult in finding the property which helps in retrieve cell value. Below the code for retrieve the header name of columns 

        vColCount =  SwfWindow("MID Retail").SwfTable("ugHeaders").Object.Rows.Item(0).Band.Columns.count

        For i = 0 to vColCount-1

        If SwfWindow("MID Retail").SwfTable("ugHeaders").Object.Rows.Item(0).Band.Columns.Item(i).Header.Caption = "Receipt #"  Then

        Msgbox "column name "

        End if

        Next

      • 0
        Michael DiFilippo
        Michael DiFilippo answered on Jun 26, 2014 1:43 PM

        You should be able to use the GetNAProperty to retrieve cell information like so,

        SwfTable(grid).GetNAProperty("Rows[0].Cells[0].Value")

        This property will allow you to access most if not all the properties about the table.

         

         

      • 0
        Ramrati D
        Ramrati D answered on Jun 30, 2014 1:36 PM

        Hi,
        Thank you very much for your response.
        GetNAProperty method is not displaying in the context menu help. I have noticed without TestAdvantage add -in with UFT 11.50 i could able to perform the recognise Infragistics object. But UFT provided methods are not supporting and getting 'Unspecified or general run error'.
        Could you please let me know whether my sequence of installation is correct.
        I have installed UFT11.5 then Test Advantage then UFT_00001 patch
        Also what should be done to access infragistics supported methods and properties.

        Thanks

      • 0
        Dave Frischknecht
        Dave Frischknecht answered on Jun 30, 2014 2:02 PM

        Hello Ramrati,

        Thank you for your response.

        You should have installed the patch for UFT first, but I don't think it makes that much of a difference.  However, I do know that UFT 11.51 does not work correctly with .NET 4.5.  If you have .NET 4.5 installed, you will need to either downgrade to .NET 4.0 or install Service Pack 3 for UFT 11.5.

      • 0
        Ramrati D
        Ramrati D answered on Jun 30, 2014 3:03 PM

        Hi,

        I have installed UFT_00001 patch . Even then i am not getting displayed .getNAproperty method.

        could you please guide what went wrong with me. I have attached snapshots of .net framework version and controls and .Net spy fyr.

        Thanks,

      • 0
        Ramrati D
        Ramrati D answered on Jun 30, 2014 3:12 PM

        Hi ,

        I have installed 'TestAutomation_WinForms_HP_20141'. for UFT11.51.

        Please help me whether it is the correct plugin to install to work on 'Infragistics2.Win.UltraWinGrid' and 'Infragistics2.Win.UltraWinToolbars'

        Thanks

      • 0
        Dave Frischknecht
        Dave Frischknecht answered on Jun 30, 2014 3:23 PM

        Hello Ramrati,

        Thank you for your response.

        As I mentioned in my previous response, you should verify the version of the .NET Framework you have installed and make sure you have Service Pack 3 for UFT 11.5 installed if you need it.  Also, the version of TestAdvantage you use must match the version of NetAdvantage your AUT uses.

      • 0
        Ramrati D
        Ramrati D answered on Jul 1, 2014 11:07 AM

        Hi,

        Thank you very much for your response.

        I have installed TestAutomation plugin. Now i could get display with Infragistics methods. But when i trying to execute am getting 'Unspecified error'.

        Please help me to resolve this. Below the line of code for which am getting Unspecified error.

        swfWindow("MID Retail").SwfToolbar("_Explorer_Toolbars_Dock_Area_Top").ClickToolbarTool "Explorers""Allocation Workspace"

        Thanks,

      • 0
        Dave Frischknecht
        Dave Frischknecht answered on Jul 1, 2014 7:08 PM

        Hello Ramrati,

        Thank you for your response.

        Unspecified Error could mean just about anything.  The first thing to do is to see if the error is caused by the AUT, by UFT, or by TestAdvantage.  First, perform the actions that caused the error manually without using UFT or TestAdvantage.  If the error does not occur, perform the actions through UFT without TestAdvantage enabled.  If the error still does not occur, the issue has something to do with TestAdvantage.  In that case, take a screenshot of the error and post it here if possible.

    • 0
      Ram D
      Ram D answered on Jun 28, 2016 1:32 PM

      Hello Michael,

      I am also facing the similar issue, Where My script was function in QTP 11. Now I am trying to run the same in UFT12.53. 

      I have installed the Infragestics version 12.1 and the application is also build using 12.1 version only.

      Below is the Script developed in QTP 11:

      SwfWindow("Zorba-WorkStation").SwfToolbar("MainMenu").Object.ToolbarsManager.Tools tbmgrToolbar, tbmgrClick, "AppToolbar", "Save"

      Now the Object is detecting as below:

      SwfWindow("Global Property Workstation").SwfObject("_MDIMainForm_Toolbars_Dock_Are")

      Please advise.

      Thanks

      Ram

      • 0
        Michael Germann
        Michael Germann answered on Jun 28, 2016 4:05 PM

        Hi Ram,

          The line you said worked in QTP 11, I could not have ever worked as you have it typed for a number of reasons.

            For starters, the ".Object.ToolbarsManager.Tools" is telling QTP to get the underlying control Object, and get the ToolbarsManager property, and it's child property Tools. Which our DockArea's do have those properties. Butit would return the .NET ToolsCollection object. Which you could not interact with directly via QTP.
         
            You then followed it with  tbmgrToolbar, tbmgrClick, "AppToolbar", "Save" which is the foot print for our QTP\UFT specific method PerformToolAction method, that is intended to run on the root QTP\UFT contexted object such as  SwfWindow("Global Property Workstation").SwfObject("_MDIMainForm_Toolbars_Dock_Are"). So I can imagine a valid recording interacting with the same Toolbar might be:

           SwfWindow("Global Property Workstation").SwfObject("_MDIMainForm_Toolbars_Dock_Are").PerformToolAction tbmgrToolbar, tbmgrClick, "AppToolbar", "Save"

            That being said, the SwfWindow identifier also changed, which gives me the impression that this script is either not for the same form, or the underlying form was renamed. So the original script would no longer work on this form either. Even something as simple as :
        SwfWindow("Zorba-WorkStation").Resize 200,200

        Because it wouldn't be able to identify the Window correctly.

      • 0
        Ram D
        Ram D answered on Jun 29, 2016 3:11 PM

        Hello Mike,

        With the QTP version, when we initially developed, it was identified as below.

        SwfWindow("Zorba-WorkStation").SwfToolbar("MainMenu")

        But with the UFT 12.53 it is detecting as below.

        SwfWindow("Global Property Workstation").SwfObject("_MDIMainForm_Toolbars_Dock_Are")

        When I try highlight the SwfWindow("Zorba-WorkStation").SwfToolbar("MainMenu") , I am able to highlight the same. But I could not be able to run the script and getting the issue.

        SwfWindow("Zorba-WorkStation").SwfToolbar("MainMenu").PerformToolAction tbmgrToolbar, tbmgrClick, "AppToolbar", "Save"

        This is the code that I developed earlier.

        But now I am getting issue that PerformToolAction method is not supported for the object.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Ramrati D
Favorites
0
Replies
15
Created On
Jun 29, 2016
Last Post
9 years, 8 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Jun 29, 2016 3:11 PM

Last activity on

Feb 11, 2026 5:13 PM