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

查看:100
本文介绍了我可以使用哪种脚本工具来自动测试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天全站免登陆