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?
相关问题
- Is there a Delphi 5 component that can handle .png
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- Stop child process when parent process stops
- Fire resize event once not based on timing
相关文章
- 放在input的text下文本一直出现一个/(即使还没输入任何值)是什么情况
- What does it means in C# : using -= operator by ev
- Web Test recorder does not allow me to record a te
- How are custom broadcast events implemented in Jav
- Factory_girl has_one relation with validates_prese
- Show a different value from an input that what wil
- What is the difference between `assert_frame_equal
- Is there a way to hide the new HTML5 spinbox contr
OpenCTF is good for you.
Quote:
Please head here to download.
There's 2 parts to this, firstly how do you automate the GUI, and secondly how do I then 'test' whether its working/not working.
Firtsly: To automate the GUI on windows try using AutoIT. Its a free tool for controlling windows interfaces, sending keyboard input events etc. http://www.autoitscript.com/autoit3/
Secondly: Testing is a big field, and I won't try and give you a whirlwind tour. But the mechanics of driving the GUI and testing the results could be handled using AutoIT's built in Basic like language or by using it in conjunction with a language like Ruby and TestUnit (rubys built-in unit testing framework).