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

查看:19
本文介绍了有什么方法可以自动进行 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 的一部分.>

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天全站免登陆