使用CodedUI访问Delphi应用程序的自定义控件 [英] Accessing Custom Controls of Delphi application using CodedUI

查看:95
本文介绍了使用CodedUI访问Delphi应用程序的自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

          能否让我知道我们是否可以使用编码UI来访问Delphi应用程序中使用的自定义控件Orpheus控件.我们需要访问自定义控件 使用CodedUI的Delphi应用程序,但是当我看到使用CodedUI测试生成器的自定义控件"时,所有控件,无论它们的类型如何(例如:当我尝试通过 访问它时,类型文本框的自定义控件都显示为控件类型winclient ; CodedUI 测试构建器)作为WinClient控件,有人可以使用CodedUI测试构建器来了解如何查看具有正确属性的原始自定义控件吗?

            Can any one please let me know if we can access Custom Controls basically Orpheus Controls used in a Delphi application using Coded UI. We have a reqt  to access Custom controls of Delphi application using CodedUI , but when I see the Custom Controls using CodedUI test builder all the controls irrespective of their type(ex:- a custom control of type text box is shown as control type winclient when I try to access it through CodedUI test builder) coming as WinClient controls, Can anybody please throw a light on how to see the original custom controls with correct properties using CodedUI test builder?

此致

Vijay.

推荐答案

我不知道

I do not know whether the Orpheus Controls implement MSAA, which is a pre-requisite to working with Record and Play and Coded UI. If they show as WinClient controls it is more likely they do not.

要在带代码的UI测试中使用基于Delphi的用户界面,您需要为要使用的每个组件实现MSAA界面,或在编码的用户界面中使其可见.看看这个 文章中的几个示例.

To use Delphi-based UIs with Coded UI tests you would need to implement the MSAA interface for each component you would want to use/have it visible with Coded UI. Take a look at this article for a couple of samples.


这篇关于使用CodedUI访问Delphi应用程序的自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆