Selenium是一个很好的多平台多浏览器的自动化测试框架,Selenium提供了2种运行模式——Core和Remote Control(RC),除此之外,ThoughtWorks还为Selenium提供了Firefox的Add-on——Selenium IDE以及RC模式的扩展Selenium Grid。现在的版本为Selenium 1.0 beta-1 released (March 5, 2008)
支持的平台和浏览器:
Supported Platforms:
Windows:
Internet Explorer 6.0 and 7.0
Firefox 0.8 to 2.0
Mozilla Suite 1.6+, 1.7+
Seamonkey 1.0
Opera 8 & 9
Mac OS X:
Safari 2.0.4+
Firefox 0.8 to 2.0
Camino 1.0a1
Mozilla Suite 1.6+, 1.7+
Seamonkey 1.0
Not yet supported: OmniWeb
Linux:
Firefox 0.8 to 2.0
Mozilla Suite 1.6+, 1.7+
Konqueror
Opera 8 & 9
Seleniumis a test tool for web applications. Selenium tests rundirectly in a browser, just like real users do. It runs in Internet Explorer, Mozilla and Firefox on Windows, Linux, and Macintosh, Safari on the Mac. We have plans to target Safari on the iPhone in some months.
具体信息可以参见Selenium首页,http://selenium.openqa.org/
1、Selenium Core:http://selenium-core.openqa.org/
Core模式一般是通过编写HTML后加载到要测试的Web程序中
Core mode: The Javascrīpt core library and the tests in question are loaded into your webapp. It is a simpler form of Selenium, and suitable for non-developers, but it has some inherent limitations. Below is a simplified representation of the architecture.
Your tests scrīpts (written in HTML) and the Selenium Test Runner itself are uploaded to the same web server that hosts the application you are trying to test. That suggests that you know how to deploy to that web server (or know someone who does).
You open a browser at a URL that will kick off the tests, and watch them run by.
Selenium Core works on muliple browsers - more than the three shown on the left.
2、Selenium RC:http://selenium-rc.openqa.org/
The Remote Control mode is more advanced. It is able to test a wider range of web-applications than Selenium-Core and is more scalable, but requires some technical knowledge to set up. Below is a simplified architectural representation of it ..