selenium introduction

16

Upload: hganesh

Post on 22-Nov-2014

155 views

Category:

Technology


2 download

DESCRIPTION

Introduction about on Selenium, a web browser automation tool. Includes Selenium RC, Webdriver, and Grid

TRANSCRIPT

Page 1: Selenium introduction
Page 2: Selenium introduction

OPEN SOURCE

APACHE LICENSE 2.0

https://code.google.com/p/selenium/source/browse

Page 3: Selenium introduction

SELENIUM AUTOMATES BROWSERS

ALL MAJOR BROWSERS

ON ALL MAJOR (DESKTOP) OPERATING SYSTEMS

Page 4: Selenium introduction

… AND MOBILE*WEB, NATIVE, AND HYBRID APPLICATIONS

* Via appium, Selendroid, ios-driver and WP driver.

Page 5: Selenium introduction

No Proprietary IDE / Language

Page 6: Selenium introduction

Selenium 2

Selenium WebDriver

SeleniumGrid with Selenium

RC

SeleniumIDE

Browser Automation

APILocal + Remote

Centrally managed parallel

execution in diverse

environments

A FF record-playback tool

mostly used for fast

prototyping

(Since 2011)

Page 7: Selenium introduction

Selenium IDE

Page 8: Selenium introduction

SELENIUM IDEA Firefox Add-on for recording, editing and running tests.Over 10M downloads to date!

PROS:

• No programming skills required

• Easy record and playback• Step by step debugger• Play tests on any browser• Export tests as WebDriver

tests• Extensible

CONS:

• Based on SeleniumCore• No code reuse• No iterations and

conditional statements• No exception handling• No error recovery

Page 9: Selenium introduction

Selenium WebDriver

Page 10: Selenium introduction

HOW DOES IT WORK?

webdriver.xpi

IEDriverServer.exe

XPCOM

COM

WIRE (JSON / HTTP)

WIRE (JSON / HTTP)

Page 11: Selenium introduction

Selenium RC

Page 12: Selenium introduction

What is it?• Selenium RC was the main project of Selenium for long time, before

webdriver.• It is still supported and provides some feature which are not present in

latest Selenium 2• It supports several languages and almost all the web browsers in the

market.

How to launch?java -jar selenium-server-standalone-2.41.0.jar

Page 13: Selenium introduction

Difference between Selenium RC and Selenium WebDriver

Selenium RC Selenium Webdriver

Page 14: Selenium introduction

Selenium Grid

Page 15: Selenium introduction

WHY GRID?

Scale by distributing tests (parallel execution)

Run tests against a vast combination of browsers / OS.

Page 16: Selenium introduction

HOWDOESIT WORK?