我可以使用什么脚本工具来自动化测试 Delphi 程序? [英] What scripting tool can I use for automated testing of Delphi programs?

查看:14
本文介绍了我可以使用什么脚本工具来自动化测试 Delphi 程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种用于自动化测试的工具.我将使用脚本进行测试,而不仅仅是自动化,这意味着它不能只发送一些按键.它需要检查应用程序的窗口以查看它是否已正确更新.越便宜越好,成本没有下行限制.;-)

I'm looking for a tool for automated testing. I will use scripting for testing, rather than just automating, which means that it can't just send some key-presses. It needs to examine the app's window to see if it was updated correctly. The cheaper the better, with no downside limit on cost. ;-)

我需要一门真正的语言,具有函数、变量、循环、分支等,并且应用程序是在 Delphi 中开发的.

I need a real language, with functions, variables, loops, branching, etc., and the apps are developed in Delphi.

我需要能够聚焦控件*,等待窗口出现,搜索控件/窗口,发送键盘输入并检查各种窗口/控件是否已更改状态(例如,按钮现在禁用,文本框包含正确的文本,对话框打开等).

I need to be able to focus controls*, wait for windows to appear, search for controls/windows, send keyboard input and check that various windows/controls have changed state (e.g a button is now disabled, a text box contains the correct text, a dialog box opens, etc.).

几年前我曾经使用过 AutoIt,现在我又开始使用脚本了.我想知道在我离开期间是否有任何新的发展.

I used to use AutoIt a few years ago and am now coming back to scripting. I wondered if there has been any new development while I was gone.

有什么建议吗?

* 如果应用程序的布局发生变化,我不想将光标移动到绝对坐标.这句话来自维基百科解释了原因:

回归测试也成为 GUI 的一个问题.这是因为 GUI 可能会在应用程序的不同版本之间发生显着变化,即使底层应用程序可能不会.旨在通过 GUI 遵循特定路径的测试可能无法遵循该路径,因为按钮、菜单项或对话框可能已更改位置或外观.

Regression testing becomes a problem with GUIs as well. This is because the GUI may change significantly across versions of the application, even though the underlying application may not. A test designed to follow a certain path through the GUI may not be able to follow that path since a button, menu item, or dialog may have changed location or appearance.

推荐答案

Autoit 会执行您列出的所有操作.我一直用它来对付同样的海豚.此外,Delphi 在使用标准 Windows 控件的意义上也很好,这使得它很容易挂钩.

Autoit does everything you listed. I use it for the same porpoises all the time. Also, Delphi is good in the sense that uses standard windows controls which makes it very easy to hook into.

这篇关于我可以使用什么脚本工具来自动化测试 Delphi 程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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