自动化的Web UI测试 [英] Automated Web UI Testing

查看:141
本文介绍了自动化的Web UI测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是好的自动化的Web UI测试工具?

What are the good automated web UI testing tools?

我希望能够在.NET世界使用它 - 但它不具备.NET编写

I want to be able to use it in the .Net world - but it doesn't have to written in .net.

功能,如记录模式,融入构建过程\\持续集成将是很好的。

Features such as a record mode, integration into build process\ continuous integration would be nice.

我要去看看:

  • Watir
  • Selenium

是否有任何其他我应该看看?

Are there any others I should look at?

推荐答案

我明确建议硒,可以从.NET使用它,支持不同的浏览器,在自动构建和CI进程(我们用它从CCNET)的作品。在code是稳定的。它有一些怪癖,但毕竟他们都做。

I definitively recommend Selenium, you can use it from .NET, supports different browsers, works in automatic builds and CI processes (we use it from CCNet). The code is stable. It has a few quirks, but after all they all do.

您选择哪种工具,我建议围绕它使你自己的测试外观类(ES)。门面应设计适合的混凝土试验的需要,而不会暴露太多测试工具的API的详细信息。这将会使测试code更容易编写和维护。

Whichever tool you choose, I recommend making your own test facade class(es) around it. The facade should be designed to suite your concrete testing needs, without exposing too much the details of the testing tool's API. This will make the test code easier to write and maintain.

更新:如果您在应用程序中使用ASP.NET视图状态,你可以有使用纯HTTP测试工具的问题。这是浏览器的控制器(如硒)要好得多。

UPDATE: if you use ASP.NET view state in your app, you could have problems using a pure HTTP test tool. This is where browser-controllers (like Selenium) are much better.

这篇关于自动化的Web UI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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