Selenium(ThoughtWorks公司开发的web自动化测试工具)
1功能编辑
-
框架底层使用JavaScript模拟真实用户对浏览器进行操作。测试脚本执行时,浏览器自动按照脚本代码做出点击,输入,打开,验证等操作,就像真实用户所做的一样,从终端用户的角度测试应用程序。
-
使浏览器兼容性测试自动化成为可能,尽管在不同的浏览器上依然有细微的差别。
-
使用简单,可使用Java,Python等多种语言编写用例脚本。
2优势编辑
Browser |
Selenium IDE |
Selenium Remote Control |
Selenium Core |
Selenium 2/Webdriver API |
---|---|---|---|---|
Firefox 10 |
Record and playback tests |
Start browser, run tests |
Run tests |
Run tests |
Firefox 9 |
Record and playback tests |
Start browser, run tests |
Run tests |
Run tests |
Firefox 8 |
Record and playback tests |
Start browser, run tests |
Run tests |
Run tests |
Firefox 7 |
Record and playback tests |
Start browser, run tests |
Run tests |
Run tests |
Firefox 6 |
Record and playback tests |
Start browser, run tests |
Run tests |
Run tests |
Firefox 5 |
Record and playback tests |
Start browser, run tests |
Run tests |
Run tests |
Firefox 4 |
Record and playback tests |
Start browser, run tests |
Run tests |
Run tests |
Firefox 3.6 |
Record and playback tests |
Start browser, run tests |
Run tests |
Run tests |
Firefox 3 |
Record and playback tests |
Start browser, run tests |
Run tests |
not supported |
IE 9 |
not supported |
Start browser, run tests |
Run tests |
Run tests |
IE 8 |
not supported |
Start browser, run tests |
Run tests |
Run tests |
IE 7 |
not supported |
Start browser, run tests |
Run tests |
Run tests |
Safari 3 |
not supported |
Start browser, run tests |
Run tests |
not supported |
Safari 2 |
not supported |
Start browser, run tests |
Run tests |
not supported |
Opera 9 |
not supported |
Start browser, run tests |
Run tests |
Run tests |
Opera 8 |
not supported |
Start browser, run tests |
Run tests |
Run tests |
Chrome |
not supported |
Start browser, run tests*** |
Run tests*** |
Run tests*** |
Others |
not supported |
Partial support possible* |
Run tests** |
not supported |
3组件编辑
-
Selenium IDE:一个Firefox插件,可以录制用户的基本操作,生成测试用例。随后可以运行这些测试用例在浏览器里回放,可将测试用例转换为其他语言的自动化脚本。
-
Selenium Remote Control (RC) :支持多种平台(Windows,Linux,Solaris)和多种浏览器(IE,Firefox,Opera,Safari),可以用多种语言(Java,Ruby,Python,Perl,PHP,C#)编写测试用例。
-
Selenium Grid :允许Selenium-RC 针对规模庞大的测试案例集或者需要在不同环境中运行的测试案例集进行扩展。
4使用编辑
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。