Is there any way to automate windows forms testing?(有什么方法可以自动化 Windows 窗体测试吗?)
问题描述
我熟悉用于业务层单元测试的 nunit,但是我现在正在寻找自动化 win 表单 gui 层的测试.
我见过 watin 和 watin 记录器,用于通过访问控件和自动化它们来自动化 Web 应用程序测试.但是,我正在努力为 Windows 窗体(用 c# 或 vb.net 编写)找到一个等效的 watin,最好是开源的.
是否存在或所有产品都基于记录鼠标和键盘按下?
更新:我看过这个 关于白色的博客文章,这似乎是我正在寻找的东西.博客文章提出了一些问题,但由于白色仅在 0.6 版中,这些问题可能会得到解决.如果其他人使用白色或任何其他进行比较,请感兴趣.
查看 http://www.codeplex.com/white 和 http://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 窗体测试吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:有什么方法可以自动化 Windows 窗体测试吗?


- Azure Active Directory 与 MVC,客户端和资源标识同一 2022-01-01
- 使用 rss + c# 2022-01-01
- 为什么 C# 中的堆栈大小正好是 1 MB? 2022-01-01
- 在 C# 中异步处理项目队列 2022-01-01
- C# 通过连接字符串检索正确的 DbConnection 对象 2022-01-01
- 在 LINQ to SQL 中使用 contains() 2022-01-01
- CanBeNull和ReSharper-将其用于异步任务? 2022-01-01
- 带问号的 nvarchar 列结果 2022-01-01
- Windows 喜欢在 LINUX 中使用 MONO 进行服务开发? 2022-01-01
- 是否可以在 .Net 3.5 中进行通用控件? 2022-01-01