Académique Documents
Professionnel Documents
Culture Documents
com
Introducing Selenium
Selenium is a robust set of tools that supports rapid development of test automation
for web-based applications. Selenium provides a rich set of testing functions
specifically geared to the needs of testing of a web application. These operations are
highly flexible, allowing many options for locating UI elements and comparing
expected test results against actual application behavior.
One of Selenium’s key features is the support for executing one’s tests on multiple
browser platforms.
Selenium Components
Selenium is composed of three major tools. Each one has a specific role in aiding the
development of web application test automation.
Selenium-IDE
Although Selenium-IDE is a Firefox only add-on, tests created in it can also be run
against other browsers by using Selenium-RC and specifying the name of the test
suite on the command line.
Selenium-Grid
Selenium-Grid allows the Selenium-RC solution to scale for large test suites or test
suites that must be run in multiple environments. With Selenium-Grid, multiple
instances of Selenium-RC are running on various operating system and browser
configurations. Each of these when launching register with a hub. When tests are
sent to the hub they are then redirected to an available Selenium-RC, which will
launch the browser and run the test. This allows for running tests in parallel, with the
entire test suite theoretically taking only as long to run as the longest individual test.
Supported Browsers
Operating
Browser Selenium-IDE Selenium-RC
Systems
1.0 Beta-1 & 1.0 Beta-2: Record Start browser, run Windows, Linux,
Firefox 3
and playback tests tests Mac
1.0 Beta-1: Record and playback Start browser, run Windows, Linux,
Firefox 2
tests tests Mac
IE 8 Under development Windows
Test execution only via Selenium- Start browser, run
IE 7 Windows
RC* tests
Test execution only via Selenium- Start browser, run
Safari 3 Mac
RC tests
Test execution only via Selenium- Start browser, run
Safari 2 Mac
RC tests
Test execution only via Selenium- Start browser, run Windows, Linux,
Opera 9
RC tests Mac
Test execution only via Selenium- Start browser, run Windows, Linux,
Opera 8
RC tests Mac
Google Test execution only via Selenium- Start browser, run
Windows
Chrome RC(Windows) tests
Test execution only via Selenium- Partial support
Others As applicable
RC possible**
** Selenium-RC server can start any executable, but depending on browser security
settings there may be technical limitations that would limit certain features.
You’ll find that Selenium is highly flexible. There are multiple ways in which one can
add functionality to Selenium’s framework to customize test automation for one’s
specific testing needs. This is, perhaps, Selenium’s strongest characteristic when
compared with proprietary test automation tools and other open source solutions.
Selenium-RC support for multiple programming and scripting languages allows the
test writer to build any logic they need into their automated testing and to use a
preferred programming or scripting language of one’s choice.
www.gcreddy.net