Forum Discussion

Beyond_great's avatar
Beyond_great
Occasional Contributor
13 years ago

TC can't support C1Ribbon created with ComponentOne Ribbon

Hi,all



I find that TC only supports main menu created with ComponentOne Menus and Toolbars for .NET Suite according to the TC help manual. Unfortunately, my tested application is using a third control that is C1Ribbon created with ComponentOne Ribbon. 



When TC can support the C1Ribbon created with ComponentOne Ribbon? Can you guys help me to find a better solution than using pixel point(eg. click(x,y))?
  • Hello,

    To test the C1Ribbon control, you can try using its native properties and methods. To learn how TestComplete can access the control's native properties and methods and how you can use it for testing, please see the Open Applications - Overview Help topic.

    Or you can use TestComplete support for applications that contain accessibility information to work with the control. Please refer to the Using Microsoft Active Accessibility Help topic to learn how to do this.

    If you are interested in implementing special support for the ComponentOne Ribbon control in TestComplete, please vote for this control on the following web page: http://smartbear.com/products/qa-tools/automated-testing/survey/ .

    Let us know if this information does not help or if you have any additional questions.

    Thank you.
  • Beyond_great's avatar
    Beyond_great
    Occasional Contributor
    Thank you for the replying. Before your answer, I have saw the detail on Open Application and Microsoft Active Accessibility, and try to fix it with them, but failed. So, all I can do is to vote for the C1Ribbon control on the URL you mentioned.



    Wouldn't it be wonderful if TC could support the control?
  • Hello,


    I have saw the detail on Open Application and Microsoft Active Accessibility, and try to fix it with them, but failed.


    Could you please specify what exactly went wrong?

    As far as I understand, you are testing a .NET application. In general, TestComplete can easily access native properties and methods of such applications. Does TestComplete treat your application under test as open?

    Was accessing your application's internals via MSAA unsuccessful either?


    Thank you.

  • Beyond_great's avatar
    Beyond_great
    Occasional Contributor
    Yes, I am testing a .NET application, TC also can access most of native methods and properties of my application, and treat it under test as open. However, for the C1Ribbon control, there is only a rbnMain object in Object Browser, and I can't find any its child elements(eg. groups, tabs, buttons and so on). Even if using MSSA, it only displays some child elements that are not the objects I want. To do On-Screen Action for the C1Ribbon object, TC also only recognizes its rbnMain object.



    In my test cases, I can't focus on the groups, tabs, buttons of the C1Ribbon object. Therefore, I  use pixel point(eg. click(x,y)) in order to click the items, but it is not convenient for maintaining my scripts. Of course, TC can obtain its methods and properties, but I can't figure out how to call the Click property for ribbon groups.Such as "Call Aliases.BrzAermod.Main.rbnMain.Tabs.Item(1).Groups.Item(2).Items.Item(0).Click", so I only call  Aliases.IncdAnyl.Main.rbnMain.Click(743, 67).
  • Hello Meie Jiang,

    I recommend that you contact our Support Team - they will try to provide you with a solution on how to test your ribbon control. Please give them the link to this thread.

    Thank you.