简体   繁体   English

如何对DotNetBar组件使用UI测试?

[英]How to use UI Tests with DotNetBar components?

I'm trying to test user interface of WinForms application that contains DotNetBar components (ButtonItem, ie). 我正在尝试测试包含DotNetBar组件(即ButtonItem)的WinForms应用程序的用户界面。 But i can't get access to inherited elements. 但是我无法访问继承的元素。 ComboBox in the ButtonItem. ButtonItem中的ComboBox。 I've tried Teststack.White and FlaUI tests. 我已经尝试过Teststack.White和FlaUI测试。 Coded UI can't even catch any action because i use Win 10 Creators Update. 编码的UI甚至无法捕获任何操作,因为我使用的是Win 10 Creators Update。

It's possible that the DotNetBar does not correctly implement the UIA providers and therefore tools like FlaUI or White and Coded UI do not see the correct controls. DotNetBar可能无法正确实现UIA提供程序,因此FlaUI或White和Coded UI之类的工具看不到正确的控件。 Make sure that neither UIA2 nor UIA3 can show the nested elements (best is with FlaUInspect in admin mode to be sure). 确保UIA2和UIA3都不能显示嵌套元素(最好是在管理模式下使用FlaUInspect)。 If that does not see the elements, you won't be able to find them. 如果没有看到这些元素,则将找不到它们。 Reach out to the creator of DotNetBar and tell them they should implement the UIA providers correctly. 与DotNetBar的创建者联系,并告诉他们他们应该正确实现UIA提供程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM