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

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

问题描述

有一个无头的浏览器.NET?

Is there a headless browser for .NET?

我要寻找这在测试范围内。

I am looking for this in a testing context.

从爪哇来到我想到的是类似的东西的HtmlUnit(http://htmlunit.sourceforge.net/),这本身就是基地像Canoo WebTest的或迅捷不同的更高水平的工具。

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测试,但不使用浏览器的远程(华廷,硒...)

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?

感谢

推荐答案

如果你是坚定的关于用纯净净的解决方案坚持,那么你有一些有用的选项,虽然他们都不是真正伟大的。

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

  • 用的HtmlUnit IKVM 。这将让你在.NET运行的HtmlUnit,但我发现,转换后的code往往比所有的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天全站免登陆