是否有适用于 .NET 的无头浏览器(用于自动化 Web-UI 测试)? [英] Is there a headless browser for .NET (for automated Web-UI-Tests)?

查看:14
本文介绍了是否有适用于 .NET 的无头浏览器(用于自动化 Web-UI 测试)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有适用于 .NET 的无头浏览器?

Is there a headless browser for .NET?

我正在测试环境中寻找这个.

I am looking for this in a testing context.

来自 Java 我正在考虑类似于 HtmlUnit (http://htmlunit.sourceforge.net/) 它本身是不同高级工具(如 Canoo WebTest 或 Celerity)的基础.

Coming from Java I am thinking of something similar to HtmlUnit (http://htmlunit.sourceforge.net/) which itself is the base for different higher level tools like Canoo WebTest or Celerity.

我想在 .Net 环境中为 Web 应用程序创建自动化 UI 测试,但不使用浏览器远程处理(Watin、Selenium...)

I would like to create automated UI tests for web applications in a .Net environment, but not using Browser-Remoting (Watin, Selenium...)

如果可能,我想坚持使用 .Net 解决方案并避免使用 Java 或 Ruby 工具.

If possible, I would like to stick to a .Net solution and avoid using Java or Ruby tools.

有哪些选择?你们在做什么?

What are the options? What are you guys doing?

谢谢

推荐答案

如果您坚持使用纯 .Net 解决方案,那么您有一些有用的选择,尽管它们都不是很好.

If you're adamant about sticking with pure .Net solutions, then you have a few useful options, although none of them are really great.

  • 带 IKVM 的 HtmlUnit.这将允许您在 .NET 中运行 HtmlUnit,但我发现转换后的代码往往比单独使用 HtmlUnit 慢得多.
  • 数据提取 SDK.您可以将它包装起来以滚动您自己的请求处理器,它会处理 cookie、表单等.
  • System.Net.WebRequest.需要最繁重的工作,但无论如何都是您要处理的大部分工作的基础.

你也可以考虑看看LiquidTest,但不是便宜:开发人员许可证起价为 2,000 美元.而且,如果您想在持续集成服务器上运行它,则服务器许可证将另外花费 1,000 美元.

You can also consider looking at LiquidTest, but it's not cheap: developer licenses start at $2,000. And if you want to run it on a continuous integration server, that'll cost you another $1,000 for a server license.

IMO,虽然 .NET 中的库和语言提供了一些强大的功能,但其支持工具集在某些领域往往不及其他语言的竞争对手.不幸的是,网络集成测试就是其中之一.

IMO, while the libraries and languages in .NET provide some powerful features, the supporting toolset often falls short of competitors in other languages in some areas. Unfortunately, web integration testing is one of those areas.

这篇关于是否有适用于 .NET 的无头浏览器(用于自动化 Web-UI 测试)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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