Vous êtes sur la page 1sur 14

INTRODUCTION TO SELENIUM

DAY 1

BY :- ANUBHAV GOEL
+91-9873629900
HOW SELENIUM WAS NAMED ?
• When body has excess content of Mercury, Selenium is
antidote for mercury poisoning.
• In earlier days most populated tool was QTP which was
developed by Mercury Interactive. And since this tool
was Killing QTP ,a Mercury Product hence it was named
as Selenium.
SELENIUM INTRODUCTION

• It is web application automation tool for functional and


regression testing.
• It supports multiple languages like JAVA, PERL,PYTHON,
C#, RUBY.
• It can be used to do automation on multiple platform \
OS
• Microsoft Windows
• Apple OS X
• LINUX
• It supports multiple browsers like FF, Chrome, IE, Safari
and Opera.
PARTS OF SELENIUM

IDE

RC

GRID

WebDriver
SELENIUM IDE
• It is just a web browser automation tool for firefox
browser only.
• Just an Addon(plugin) of Firefox which can be used to
automate AUT on FF.
• Have functionality of Record and Play.
• Best for creating quick bug reproduction scripts
• Not much feasible to develop own customized
framework using IDE.
• Can create individual test script or integrate multiple
test scripts into test suite.
SELENIUM REMOTE CONTROL
• A test tool that allows you to write automated web application UI
tests in any programming language against any website using any
JavaScript-enabled browser.
• Provided Selenium RC server which launches and kills the browser.
• Provided Client libraries supporting Multiple Languages like Java,
perl,python,ruby,c#,php.

• Server pass all the selenium commands of your test script to the
selenium core to perform on browser.
• Supports multiple browsers like FF, chrome, IE, Safari,Opera
• An ideal solution for users of Selenium IDE who want to write tests
in a more expressive programming language than the Selenese
HTML table format.
• Attention required to start and stop RC server.
SELENIUM REMOTE CONTROL
SELENIUM GRID
• Grid took Selenium Remote Control to another level by running
tests on many servers at the same time, cutting down on the time
it takes to test multiple browsers or operating systems.
• Selenium RC server.
• Selenium HUB.
SELENIUM WEBDRIVER
• Latest enhancement in selenium came with version 2.0
• WebDriver is designed in a simpler and more concise programming
interface along with addressing some limitations in the Selenium-RC API.
• WebDriver is a compact Object Oriented API when compared to
Selenium1.0
• It drives the browser much more effectively and overcomes the limitations
of Selenium 1.x which affected our functional test coverage, like the file
upload or download, pop-ups and dialogs barrier
• WebDriver overcomes the limitation of Selenium RC's Single Host origin
policy. Under the policy, a web browser permits scripts contained in a first
web page to access data in a second web page, but only if both web pages
have the same origin.
• No need to take care of the start\stop of RC server.
• Runs faster than Selenium RC.
DIFF B/W SELENIUM IDE, RC &
WEBDRIVER ?
Selenium IDE Selenium RC Selenium WebDriver

It supports with all browsers like Firefox, IE, It supports with all browsers like Firefox, IE,
It only works in Mozilla browser.
Chrome, Safari, Opera etc. Chrome, Safari, Opera etc.

It supports Record and playback It doesn’t supports Record and playback It doesn’t supports Record and playback

Doesn’t required to start server before Required to start server before executing Doesn’t required to start server before
executing the test script. the test script. executing the test script.

It is standalone java program which allow It actual core API which has binding in a
It is a GUI Plug-in
you to run Html test suites. range of languages.

Core engine is Javascript based Core engine is Javascript based Interacts natively with browser application

Very simple to use as it is record & As compared to RC, it is bit complex and
It is easy and small API
playback. large API.

It is not object oriented API’s are less Object oriented API’s are entirely Object oriented

It doesn’t supports of moving mouse It doesn’t supports of moving mouse


It supports of moving mouse cursors.
cursors. cursors.
Need to append full xpath with ‘xpath=\\’ Need to append full xpath with ‘xpath=\\’ No need to append full xpath with ‘xpath=\\’
syntax syntax syntax
It does not support to test iphone/Android It does not support to test iphone/Android It support to test iphone/Android
applications applications applications
ADVANTAGES OF SELENIUM

• Free
• Support multiple browsers
• Support multiple programming languages
• Can execute test cases in parallel
LIMITATIONS OF SELENIUM

• Support only web based application


• Programming skills are required
• No support available
• Lot of configurations need to be done
DIFF B/W UFT & SELENIUM
HP UFT (QTP) Selenium

It is commercial tool and hence it requires a Its an open source tool hence it does not
license is expensive require license and is free

It can test web- based as well as desktop Using Selenium only web applications can be
applications tested

HP UFT only supports VB script Selenium supports many programming


languages

All types of dialog box is supported by it It supports dialog box partially

HP QTP offers very good technical support It has no official support, since it is an open
source

Automation testing is expensive due to Web automation testing with Selenium incurs
licensing cost less cost

HP UFT comes with built in object Selenium does not have such built in object
repository. Object repository development repository, but object can be managed by
and maintenance is quite easy in HP ALM using UI element user extension
THANK YOU 

Vous aimerez peut-être aussi