有什么方法可以自动化 Windows 窗体测试吗? [英] Is there any way to automate windows forms testing?

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

问题描述

我熟悉用于业务层单元测试的 nunit,但是我现在正在寻找自动化 win 表单 gui 层的测试.

我见过 watin 和 watin 记录器,用于通过访问控件和自动化它们来自动化 Web 应用程序测试.但是,我正在努力为 Windows 窗体(用 c# 或 vb.net 编写)找到一个等效的 watin,最好是开源的.

是否存在或所有产品都基于记录鼠标和键盘按下?

更新:我看过这个 关于白色的博客文章,这似乎是我正在寻找的东西.博客文章提出了一些问题,但由于白色仅在 0.6 版中,这些问题可能会得到解决.如果其他人使用白色或任何其他进行比较,请感兴趣.

解决方案

查看 http://www.codeplex.com/whitehttp://nunitforms.sourceforge.net/.我们成功地使用了 White 项目.

上一个问题的答案相同

编辑

White 项目已迁移,现在位于 GitHub 作为 TestStack 的一部分.p>

I am familiar with nunit for unit testing of the business layer however I am looking now to automate the test of the win forms gui layer.

I have seen watin and the watin recorder for automating tests on web application by accessing the controls and automating them. However I am struggling to find a watin equivalent for windows forms (written in c# or vb.net) preferably that is open source.

Does one exist or are all products based on recording mouse and keyboard presses?

Update: I have looked at this blog post on white and it seems the sort of thing I am looking for. The blog post raises some issues but as white is only in version 0.6 these may be resolved. Be interested if others have used white or any others for comparison.

解决方案

Check out http://www.codeplex.com/white and http://nunitforms.sourceforge.net/. We've used the White project with success.

Same Answer to a previous question

Edit

The White project has moved, and is now located on GitHub as part of TestStack.

这篇关于有什么方法可以自动化 Windows 窗体测试吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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