测试我的webforms应用程序的最佳方法是什么?

看起来人们喜欢Watin和selenium.

推荐答案

UPDATE: Given WatiN has been stagnant for over a year now, I would direct anyone that needs web ui tests towards 100, it is in continuous use & development by many contributors, and is actively used by Google.

WatiN是我找到的最好的.它集成到Visual Studio单元测试或nunit&;你几乎可以在浏览器中做任何你需要的事情(点击链接、提交表单、查找文本/图像等)

有关类似的答案,请参见以下问题:

Asp.net相关问答推荐

内容根路径在 .NET 6 中如何工作?

强制从 /bin 而不是 GAC 加载程序集?

如何注册路由区域

如何在 ASP.NET 中以 'YYYY-MM-DD' 格式获取当前日期?

是否可以在没有那些 .svn 文件夹的情况下从 subversion 签出文件?

SqlBulkCopy 超时

获取没有主机的 url 部分

如何在 ASP.NET 中使用时区?

判断会话是否为空

问题映射 HttpHandler --> HTTP Error 404 Not Found

ASP.NET 会话超时测试

在 ASP.NET 中使用 Messenger Connect 客户端库时出现 Javascript 错误

如何配置 ELMAH 以使用 Windows Azure?我在 Elmah.axd 上得到 404

如何获取正在访问 ASP.NET 应用程序的当前用户?

ContentResult 与字符串

简单的 LINQ 和列表错误:WhereListIterator`1[Task]' to type 'System.Collections.Generic.List`1[Task]'

Application_Start 和 Application_OnStart 之间的区别

通过 CultureInfo 格式化字符串

使用 jQuery 从 asp:RadioButtonList 读取选定的值

System.Web.Caching 还是 System.Runtime.Caching 更适合 .NET 4 Web 应用程序