什么是最好的自动化网站 UI 测试框架 [英] What is the best automated website UI testing framework

查看:31
本文介绍了什么是最好的自动化网站 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.

我要去看看:

还有其他我应该看的吗?

Are there any others I should look at?

推荐答案

我绝对推荐 Selenium,你可以从 .NET 使用它,支持不同的浏览器,在自动构建和 CI 过程中工作(我们从 CCNet 使用它).代码稳定.它有一些怪癖,但毕竟它们都有.

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.

无论您选择哪种工具,我都建议围绕它制作您自己的测试外观类.外观应设计为适合您的具体测试需求,而不会暴露过多测试工具 API 的细节.这将使测试代码更易于编写和维护.

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 测试工具时可能会遇到问题.这就是浏览器控制器(如 Selenium)要好得多的地方.

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.

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

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