如何在TestComplete中自动化属于ApexGrid的网格? [英] How to automate a grid belonging to ApexGrid in TestComplete?

查看:99
本文介绍了如何在TestComplete中自动化属于ApexGrid的网格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一个网格,并使用TestComplete工具进行监视. 它标识其WndClass为"TG60.ApexGrid32.20". 我无法正确获取单元格或行数.任何人对此类物品都有经验吗? 是否有其他应用程序支持此类? 任何帮助将不胜感激!

I have a grid in my application and I spied using the TestComplete tool. It identifies its WndClass as "TG60.ApexGrid32.20". I am not able to get the number of cells or rows properly. Anyone has any experience with objects of this class? Does any other application support this class? Any help would be greatly appreciated!

推荐答案

您的网格似乎是Apex True DBGrid(后来成为ComponentOne True DBGrid).如果没有,请更新您的问题.

Your grid seems to be Apex True DBGrid (which later became ComponentOne True DBGrid). If not, update your question.

TestComplete开箱即用不支持True DBGrid,但是您可以使用网格的本机属性和方法进行自动化.例如,您可以使用本机 Columns .Count属性以获取列数.

TestComplete doesn't support True DBGrid out of the box, but you can use the grid's native properties and methods for automation. For example, you can use the native Columns.Count property to get the number of columns.

以下是使用其本机成员自动化True DBGrid的示例:

Here're examples of automating True DBGrid using its native members:

点击单元格

点击行指示器

要查看可以用于自动化的属性和方法,请在TestComplete的对象浏览器中检查网格.您还可以查看真实的DBGrid文档,但是它适用于最新的True DBGrid版本,并且可能不适用于早期版本.

To see what properties and methods you can use for automation, examine your grid in TestComplete's Object Browser. You can also check the True DBGrid documentation, but it applies to the latest True DBGrid version and may not apply to earlier versions.

这篇关于如何在TestComplete中自动化属于ApexGrid的网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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