1. Selenium
-Web Testing Tool
Presented By :
o Nitin Nirmal 25
o Hitesh Shetty 44
o Mahesh Tawde 52
o Manish Patil 57
o Mayuresh Wadekar 64
2. What is Selenium?
Selenium is a robust set of tools that supports rapid development
of test automation for web-based applications.
Works on every system, where JavaScript is supported
Can simulate a user navigating through pages and then assert for
specific marks on the pages
Selenium IDE is a plug-in to Firefox to record and playback tests.
(like Win Runner, QTP).
You can then export the recorded test in most language
e.g. HTML, Java , C# , Perl , Ruby etc.
Ability to deploy on different platforms : Windows, Linux, Mac.
3. Supported Browsers
Browser Selenium-IDE Selenium-RC Operating Systems
1.0 Beta-1 & 1.0 Beta-2:
Firefox 3 Record and playback Start browser, run tests Windows, Linux, Mac
tests
1.0 Beta-1: Record and
Firefox 2 Start browser, run tests Windows, Linux, Mac
playback tests
Test execution only via
IE 7 Start browser, run tests Windows
Selenium-RC
Test execution only via
Safari 3 Start browser, run tests Mac
Selenium-RC
Test execution only via
Safari 2 Start browser, run tests Mac
Selenium-RC
Test execution only via
Opera 9 Start browser, run tests Windows, Linux, Mac
Selenium-RC
Test execution only via
Opera 8 Start browser, run tests Windows, Linux, Mac
Selenium-RC
Test execution only via
Google Chrome Start browser, run tests Windows
Selenium-RC(Windows)
Test execution only via
Others Partial support possible As applicable
Selenium-RC
4. Components of Selenium
Selenium Core
Selenium IDE
Selenium Remote Control (RC)
Selenium Grid
5. Selenium Core
Legacy product that consisted of libraries of .js(JavaScript) files.
Selenium Core is a test tool for web applications.
Selenium Core tests run directly in a browser, just as real users
do. And they run in Internet Explorer, Mozilla and Firefox on
Windows, Linux and Macintosh.
Installation
1. Extracting the Selenium Core zip file into the DocumentRoot,
or webroot of your webserver.
2. Then, try to open the TestRunner.html page on your website,
which should be in the core/ directory.
6. Selenium IDE
Integrated Development Environment for building Selenium
test cases.
Operates as a Firefox add-on and provides an interface for
developing and running individual test cases or entire test suites.
Selenium-IDE has a recording feature, which will keep account of
user actions as they are performed and store them as a reusable
script to play back.
Installation
1. Open Firefox and Download the latest version of Selenium IDE
(currently version 1.9).
8. Selenium Remote Control (RC)
Selenium Remote Control (RC) is a server, written in Java that
accepts commands for the browser via HTTP.
Components of Selenium RC are:
o Selenium Server
o Client Libraries
Installation
1. The Selenium RC server is simply a Java jar file (selenium-
server-standalone-<version-number>.jar)
2. Just downloading the zip file and extracting the server in
the desired directory is sufficient.
9. Selenium Grid
Selenium-Grid allows you run your tests on different machines
against different browsers in parallel.
Selenium-Grid support distributed test execution.
With Selenium Grid, one server acts as the hub.
A grid consists of a single hub, and one or more nodes. Both
are started using the selenium-server.jar executable.
Installation
1. Download the Selenium-Server jar file
2. Install it in a folder of your choice.
10. Advantages And Limitations
Advantages:
Customized defect reporting
Finding defects missed by manual testing
Support for Agile and extreme development methodologies
Frequent regression testing
Rapid feedback to developers
Limitations:
If the application’s user interface will change considerably in
the near future, then any automation might need to be
rewritten anyway.
11. Conclusion
Most of the applications these days are Web-Based.
Test automation is used more frequently.
Test automation uses software tools to run repeatable test.
Selenium act as a tool to do test automation.
Components include IDE, RC, and Grid.
Core Consists of core .js(JavaScript) libraries.