IE9/FF/Chrome 的 Javascript/JQuery 浏览器测试框架
如果之前已经问过这个问题,我深表歉意,但我在谷歌上找不到答案。
我正在为每个浏览器寻找一个测试插件,我可以在其中简单地记录测试(单击各种内容),然后只需单击“运行测试”即可运行此测试。如果我能写一些关于我需要什么样的答案的代码(即生成最终的html),那就最好了,但如果可能的话那就没问题了。
我无法使用 JUnit 等内容的原因是因为我的代码使用外部 Web 服务(例如我无法访问的外部服务器上的付款)并且我在测试期间被重定向到不同的页面,所以我假设它必须是一个测试插件。
如果这些插件能够与 Visual Studio 2010(或者至少是 IE 插件)集成,那就太棒了,但没有它我也能生活。
我正在阅读 iMacros(Chrome,但不幸的是 beta)和 Selenium(Firefox),但我想知道最标准的方法是什么(我认为它已经完成了很长时间)。另外我还需要一个 IE9 版,但我还没有找到。
提前致谢, 约瑟夫
附言。我创建了 AJAX 重型网页,因此简单的基于 URL 的测试是不够的(如 AdobeBrowser 实验室)
I apologize if this question was asked already before but I could not find an answer on google.
I am looking for a testing plugin for each browser, where I could simply record a test (click on a variety of things) and then simply run this test just by clicking 'run test'. The best if I could write some code about what sort of answers I require (i.e. generated final html), but if that is possible it is ok.
The reason I can't use stuff like JUnit etc. is because my code uses external webservices (such as payment on an external server, that I can't access) and I am redirected to different pages during the test, so I assume it has to be a test plugin.
If the plugins would be intergrated with Visual Studio 2010 (or at least the IE plugin) it would be awesome, but I can live without it.
I am reading into iMacros (Chrome, but unfortunately beta) and Selenium(Firefox), but I wanted to know what is the mostly standart way to do that (I assume it was done for ages now). Additionally I need one for IE9, which I did not find yet.
Thanks in advance,
Jozef
ps. I create AJAX heavy webpage, so simple URL based testing is not enough (like AdobeBrowser lab)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Selenium 非常适合 Web 浏览器自动化测试,最新版本适用于几乎所有版本的 IE ( 7 - 9)(我目前无法查看工作中的文档)以及 Firefox 3 - 8 和 Chrome 12 及以上版本。
selenium 网站和 http://code.google.com/p/ 上有一些很好的示例selenium/ 站点也是如此。
(对于 Chrome 浏览器,您还需要下载 ChromeiumServer
这是我前一段时间一直在搞乱的一些粗略且现成的源代码
Selenium is quite good for web browser automated testing and the latest version works with almost all versions of IE (7 - 9) (I can't view the documentation at work at the moment) and Firefox 3 - 8, and Chrome 12 upwards.
There are some good examples on the selenium website and on the http://code.google.com/p/selenium/ site too.
(For the Chrome browser you'll also need to download the ChromeiumServer
Here's some rough and ready sourcecode I've been messing about a while back