Skip to content

Infragistics Community Forum / Test Automation For Micro Focus Uft Windows Forms / HP UFT Recognizes Infragistics Controls as WinObject

HP UFT Recognizes Infragistics Controls as WinObject

New Discussion
liran pere
liran pere asked on Jul 9, 2018 12:41 PM

hi ,

we are working with HP  UFT 12.01

and TestAutomation WinForms HP 20141 ( 2014 01)

our application uses .net 4.0

(in version utility chose CLR 4)

we tried also with Coded UI ( under visual studio 2012) but still same results

using your samples under coded UI it worked fine,

but for our application the UFT still sow events as Click (x,y) and nothing related to controls like Ultra tree or Ultra Grid

our application uses CAB ( smart client ).if it make an issue

can you assist ,

thanks.

Sign In to post a reply

Replies

  • 0
    Michael DiFilippo
    Michael DiFilippo answered on Jul 2, 2018 7:23 PM

    Hello Liran,

    Thank you for contacting Infragistics. Which version of Infragistics is your application referencing. If it's not the same as 2014 Volume 1 (aka TA's version), then there will be compatibility issues.

    Keep in mind that Coded UI and Test Advantage are two completely separate tools for testing an application. They cannot be used in the same way nor are related.

    Another note, I recommend recording against the samples that are included with TestAdvantage to ensure your configuration is setup correctly. If you already tried this what were your results?

    The samples are located in the following path under Windows XP for the most recent versions of TestAdvantage: eg.

    C:\Documents and Settings\All Users\Documents\Infragistics\TestAdvantage for Windows Forms (HP) [version]\Samples

    Sample Location: For Windows Vista and Windows 7 this would be: eg.

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

    Let me know if you have any questions.

    • 0
      liran pere
      liran pere answered on Jul 3, 2018 7:01 AM

      Hi Michael,

      thanks for the quick response,

      in the application we are using 14.01 (for now)

      we have tried the samples but all of them froze during record  (not responding)

      both under CLR4 and version free ( changed it under Version Utility before opening the UFT)

      so now the question is does the version of UFT compatible with 14.01 ( UFT version is 12.01 – that is what we have)

      or is it something else you can think of to help us .

      Thanks,

      Liran

    • 0
      liran pere
      liran pere answered on Jul 3, 2018 8:55 AM

      Hi,

      so i download a trial version of HP just to check (14.03 )

      it seem to work , so there might be a issue with 12.01 and Infragistics 14.01

      issues that we did  found were

      a problem with editor button that under the test no action was record for selection or clicking the button.

      and sometime dialog windows or message boxs that the test did not record property and failed because of that.

      again we have HP 12.01 so i rather use that and not update it yet, ( might not be possible)

      • 0
        Michael DiFilippo
        Michael DiFilippo answered on Jul 3, 2018 1:44 PM

        Hello Liran,

        Thank you for following up. HP UFT 12.1 is compatible with Infragistics 2014 Volume 1, but I have not seen any issues personally with this setup. However I know that HP UFT version 14.1 had terrible results with our controls. Anything newer is preferable, but please keep in mind that we only tested Infragistics 17.1 and later with HP UFT 14.0.

        For more details about our supported environments please visit our website at: https://pt-br.infragistics.com/support/supported-environments

        Let me know if you have any questions.

      • 0
        liran pere
        liran pere answered on Jul 8, 2018 9:47 AM

        hi ,

        well i tested it again on my machine ( the first tests were at the QA env. so i need to check what is installed or not on it)

        i got it to work ( with the samples and our application) so it does not freeze.

        i still got an issue with editor button ( button in the ButtonRight collection of the cell)

        the UFT does not recognize it , do i need to write a code in the action tab in the UFT to simulate a click on it ?

        can you give me an example as how to do so ( working with editor button i mean)

        Thanks

      • 0
        Michael DiFilippo
        Michael DiFilippo answered on Jul 9, 2018 12:41 PM

        Hello Liran, 

        Thank you for following up. I am glad you were able to get the samples and most of your application recording correctly. At this time please provide me with more details on what the editor button does. Is this a custom editor or a standard built in editor of the grid? I am asking this because if the button only modifies the value of the editor, then the changes to the value of the cell should be recorded and could be played back.  Does that work in your application?  If so is this sufficient for testing your application? Are you attempting to just click on the control in the cell. Click on the control which drops down and then click on a sub control or UIElement after the control is dropped down. 

        Some actions you may want to look at are:
        Set oGrid = SwfWindow("Form1").SwfTable("ultraGrid1") 
        ' ClickCellButton looks to see if the cell has a visible ButtonUIElement, if so it clicks it.
        oGrid.ClickCellButton(oRow, oColumn)
        'GetCellProperty can get any property from the cell directly, plus a few custom ones added like X,Y,width, and height. Which you can use to click anywhere you want relative to the cell and oGrid.Click
        oGrid.GetCellProperty(oRow, oColumn, sPropName)
        'PerformAction can perform a number of internal custom actions for the Grid many are self explanatory some that you might find useful (gridEnterEditModeAndDropdown, gridToggleDropdown)
        oGrid.PerformAction(oActionEnum, [Optional]oUseShift, [Optional]oUseCtrl)
        Let me know if you have any questions.
  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
liran pere
Favorites
0
Replies
6
Created On
Jul 09, 2018
Last Post
7 years, 7 months ago

Suggested Discussions

Created by

Created on

Jul 9, 2018 12:41 PM

Last activity on

Feb 12, 2026 8:28 AM