DevExpress LookUpEdit 和编码 UI 测试

发布于 2024-11-01 03:22:06 字数 275 浏览 2 评论 0原文

我们正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

缱绻入梦 2024-11-08 03:22:06

为每个继承自 Control.ControlAccessibleObject 的控件创建一个 CustomAccessibleObject。然后重写控件上的 CreateAccessibilityInstance() 方法,以便它返回 CustomAccessibleObject

在您的控制之下:

public class MyControl : SomeDevExpressControl  
{
    protected override AccessibleObject CreateAccessibilityInstance()
    {
        return new MyCustomAccessibleObject(this);
    }
}

public class MyCustomAccessibleObject : Control.ControlAccessibleObject
{
    //override stuff here
}

请参阅 http://msdn.microsoft。 com/en-us/library/system.windows.forms.accessibleobject.aspx
了解更多详情。

Create a CustomAccessibleObject for each of your controls that inherits from Control.ControlAccessibleObject. Then override the CreateAccessibilityInstance() method on your control so that it returns a CustomAccessibleObject.

In your control:

public class MyControl : SomeDevExpressControl  
{
    protected override AccessibleObject CreateAccessibilityInstance()
    {
        return new MyCustomAccessibleObject(this);
    }
}

public class MyCustomAccessibleObject : Control.ControlAccessibleObject
{
    //override stuff here
}

See http://msdn.microsoft.com/en-us/library/system.windows.forms.accessibleobject.aspx
for more details.

怕倦 2024-11-08 03:22:06

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 :(.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文