DevExpress LookUpEdit 和编码 UI 测试
我们正在使用 Windows Forms 和 DevExpress 控件开发软件。
我们还想使用编码的 UI 测试来自动测试我们的应用程序。
正如我们最近的经验告诉我们的那样,DevExpress 不支持 CUIT。
但我们别无选择,既不能放弃 DevExpress 控制,也不能放弃 CUIT。
最近,我使用 MTM 创建了一个测试用例,用于测试包含 LookUpEdit 控件的表单。正如您所猜测的,我无法正确使用参数。
有什么办法可以解决这个问题吗?
We are developing software using Windows Forms and DevExpress controls.
And also we want to use Coded UI tests to test our application automatically.
As our recent experiences taught us that DevExpress does not support CUIT.
But we have no options to neither give up from DevExpress control nor give up from CUIT.
Recently i created a test case using MTM that tests a form which includes LookUpEdit controls. As you would guess i couldn't use parameters correctly.
Is there any way to workaround this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为每个继承自
Control.ControlAccessibleObject
的控件创建一个CustomAccessibleObject
。然后重写控件上的CreateAccessibilityInstance()
方法,以便它返回CustomAccessibleObject
。在您的控制之下:
请参阅 http://msdn.microsoft。 com/en-us/library/system.windows.forms.accessibleobject.aspx
了解更多详情。
Create a
CustomAccessibleObject
for each of your controls that inherits fromControl.ControlAccessibleObject
. Then override theCreateAccessibilityInstance()
method on your control so that it returns aCustomAccessibleObject
.In your control:
See http://msdn.microsoft.com/en-us/library/system.windows.forms.accessibleobject.aspx
for more details.
据我所知,DevExpress控件由TestComplete框架支持。我们(DevExpress)不知道有其他框架支持我们的工具。我不熟悉编码 UI 框架,无法帮助您使用我们的控件来适应它:(。
As far as I know, DevExpress controls are supported by TestComplete framework. We (at DevExpress) aren't aware of other frameworks which support our tools. I am not familiar with the Coded UI framework and cannot help you to adapt it using our controls :(.