Selenium是一個很好的多平臺多瀏覽器的自動化測試框架,Selenium提供了2種運行模式——Core和Remote Control(RC),除此之外,ThoughtWorks還為Selenium提供了Firefox的Add-on——Selenium IDE以及RC模式的擴(kuò)展Selenium Grid。現(xiàn)在的版本為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 ..