我如何伪造表单测试的输入? [英] How do I fake input for form testing?

查看:270
本文介绍了我如何伪造表单测试的输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的Delphi 2009应用程序构建测试工具。测试逻辑是相当简单的。确保表格正常工作证明有点复杂。我想要一种模拟真实用户输入的方法,打开一个表单,让它认为有一个用户在某些地方打字,点击某些地方,并确保它正确反应。我确定有办法做到这一点,我只是不知道是什么。有没有人知道如何做?

解决方案

DUnit有 GUITesting.pas 可以将单击,键和文本发送到表单上的控件,但这是关于它。



去年,提及 僵尸 由CodeGear开发人员使用的内部GUI测试框架,但史蒂夫离开了Falafel后没有。


I'm building a test harness for my Delphi 2009 app. Testing the logic is fairly simple. Making sure the forms work properly is proving a bit more complicated. I'd like a way to simulate real user input, to open a form, make it think there's a user typing certain things and clicking in certain places, and make sure it reacts correctly. I'm sure there's a way to do this, I just don't know what it is. Does anyone know how to do it?

解决方案

DUnit has GUITesting.pas whicih extends testing so you can send clicks, keys and text to controls on form, but that is about it.

Last year there where mentions of Zombie GUI testing framework that was used internaly by CodeGear developers, but nothing since Steve left for Falafel.

这篇关于我如何伪造表单测试的输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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