如何自动化一个基于浏览器的应用程序的测试? [英] How to automate testing of a browser-based app?

查看:401
本文介绍了如何自动化一个基于浏览器的应用程序的测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果它是一个Windows程序,我会用自动它的自动化测试。是否有基于浏览器的应用程序类似的东西?

If it were a windows program, I would use Auto it to automate testing. Is there something similar for browser-based apps?

没有什么太复杂了,它应该只允许脚本(preferable对我来说,宏观录音)来模拟与浏览器,这意味着能够通过名字来确定的表单字段,注入文本,一些人际交往,模拟鼠标点击他人等,然后提交表单后,应该能够阅读的文本特定命名控制,检查其他(检查,单选按钮组索引,只读,等等)。

Nothing too complex, it should just allow scripting (preferable for me to macro-recording) to simulate human interaction with the browser, which means being able to identify fields of a form by name, inject text into some, simulate mouse-click on others, etc and then, after submitting a form, should be able to read text certain named controls, check the status of others (checked, radio group index, read-only, etc).

虽然我AP preciate一个全功能的产品,我不AP preciate陡峭的学习曲线。这样的东西作为汽车的脚本一样简单这woudl被罚款。

While I do appreciate a full featured product, I don't appreciate a steep learning curve. so something as simple as the scripting of Auto It woudl be fine.

我不知道,如果它使这是使用的浏览器有区别的,但我可以MSIE 6或更高生活(也许7或更高版本在推)。

I don't know if it makes a difference which browser is used, but I could live with MSIE 6 or higher (maybe 7 or higher at a push).

编辑:三张海报至今(出三)推荐硒。其中一个说,这是Firefox的唯一,我需要测试MSIE,但是一些快速谷歌上搜索显示,这应该是可能的(尽管你可能需要在FF首先设置好一切,然后切换到MSIE)。

Three posters so far (out of three) recommend Selenium. One says it is FireFox only and I need to test MSIE, however some quick googling shows that this should be possible (although you might have to set everything up in FF first, then switch over to MSIE).

请参阅http://www.emadibrahim.com/2009/01/19/testing-web-app-with-selenium-explorer-and-net/和<一个href=\"http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ\">http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ希望这可以帮助别人。

See http://www.emadibrahim.com/2009/01/19/testing-web-app-with-selenium-explorer-and-net/ and http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ Hope this helps someone.

推荐答案

您有几个选项可供选择:

You have several options to choose from:

  • Selenium
  • Watin/Watir
  • HtmlUnit

这篇关于如何自动化一个基于浏览器的应用程序的测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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