SlideShare a Scribd company logo
1 of 16
Download to read offline
SELENIUM
101
• Marc A Myers
• Lead QA Analyst for EFSS
WHAT IS “SELENIUM”? - THE BASICS
• Selenium
• A suite of tools to automate web browsers across many platforms.
• Those tools are the Selenium IDE for Firefox and the Selenium WebDriver.
• Can be controlled by several programming languages and testing frameworks.
• Many GUI based browser automation tools, APIs, and frameworks are built on top of
Selenium.
SELENIUM IDE
• A Firefox add-on that does simple record
and playback of browser events.
• Ideal environment for quickly creating
Selenium tests.
• Offers Debugging and breakpoints for
tests created
• Export tests as HTML, Ruby scripts, and
other formats.
SELENIUM WEBDRIVER
• Selenium 1.0 + WebDriver = Selenium 2.xx
• A collection of language specific bindings to drive a browser.
• It makes direct calls to the browser using each browser’s native support for
automation.
• The key interface against which tests are to be written in Java.
BASIC TEST ENVIRONMENT CONFIGURATION
• Maven Project > TestNG (Assertions) > Selenium WebDriver > Browser
• Testing one local browser at a time on the same machine as the IDE/test runner that is
executing/running the test.
• Advantages of this configuration:
• Easy to troubleshoot your tests
• Watch as the tests run locally, observe potential defects as they occur
• Quick and easy to set up
DISADVANTAGES OF A BASIC CONFIGURATION
• Restricted to the browsers available to your OS version/local machine.
• In the case of IE, generally only the highest supported IE can be installed.
• Assuming you’re on Windows, you’re not able to test against other OS and browser
versions such as Safari or OSX and Linux versions of Chrome and Firefox.
• It’s not scalable
• Running a system or performance test can be taxing on your local machine and it holds
your resources hostage until the tests have completed.
SELENIUM GRID
• Supports distributed test execution.
• This means running tests in a “distributed test execution” environment.
• This allows you to scale test coverage by distributing your tests to several
machines, with the option of parallel execution.
• Manages multiple environments from a central point.
SELENIUM GRID CONT.
• A grid is made up of a HUB and several NODES.
• The HUB is the central point that will receive all test requests and distribute
them to the NODES.
• The NODES are where your testing will occur.
• One NODE can have several available browsers.
• A NODE can also be a mobile device.
WHY TESTNG?
• Superior Parameter based testing
• With @DataProvider
• Advanced dependency testing
• Tests can rely on each other
• Suite Testing
• Test groups and types
• TestNG can run JUnit tests
WHY MAVEN?
• Dependency Management
• Avoids common client conflicts
• Handles downloading, installing, and
keeping track of different version of
dependencies.
• Streamlined Build Process
• You don’t have to understand how a
project works to clone it and build it.
Selenium StudyGroup
Selenium StudyGroup

More Related Content

What's hot

Stabilizing SE Build - Selenium conf 2013
Stabilizing SE Build - Selenium conf 2013 Stabilizing SE Build - Selenium conf 2013
Stabilizing SE Build - Selenium conf 2013 dimakovalenko
 
Selenium grid workshop london 2016
Selenium grid workshop london 2016Selenium grid workshop london 2016
Selenium grid workshop london 2016Marcus Merrell
 
Ahmed_Cloud_DevOps_Puppet
Ahmed_Cloud_DevOps_PuppetAhmed_Cloud_DevOps_Puppet
Ahmed_Cloud_DevOps_PuppetAhmed Baig
 
No BS, Vendor Neutral Comparison of Application Layering Solutions
No BS, Vendor Neutral Comparison of Application Layering SolutionsNo BS, Vendor Neutral Comparison of Application Layering Solutions
No BS, Vendor Neutral Comparison of Application Layering SolutionsUnidesk Corporation
 
Spring frame work by rohit malav(detailed)
Spring frame work by rohit malav(detailed)Spring frame work by rohit malav(detailed)
Spring frame work by rohit malav(detailed)Rohit malav
 
TestingBot Introduction: Selenium Grid with Browsers and Mobile Devices
TestingBot Introduction: Selenium Grid with Browsers and Mobile DevicesTestingBot Introduction: Selenium Grid with Browsers and Mobile Devices
TestingBot Introduction: Selenium Grid with Browsers and Mobile Devicestestingbot
 
Meson: Building a Machine Learning Orchestration Framework on Mesos
Meson: Building a Machine Learning Orchestration Framework on MesosMeson: Building a Machine Learning Orchestration Framework on Mesos
Meson: Building a Machine Learning Orchestration Framework on MesosAntony Arokiasamy
 
Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014
Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014
Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014ahunnargikar
 
Evolution of VS code Java ecosystem
Evolution of VS code Java ecosystemEvolution of VS code Java ecosystem
Evolution of VS code Java ecosystem Adi Polak
 
Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast
Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast
Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast Compuware
 
Distributed Testing Environment
Distributed Testing EnvironmentDistributed Testing Environment
Distributed Testing EnvironmentŁukasz Morawski
 
Citrix certified administrator certification
Citrix certified administrator certificationCitrix certified administrator certification
Citrix certified administrator certificationCisco-642-902
 
Meson: Heterogeneous Workflows with Spark at Netflix
Meson: Heterogeneous Workflows with Spark at NetflixMeson: Heterogeneous Workflows with Spark at Netflix
Meson: Heterogeneous Workflows with Spark at NetflixAntony Arokiasamy
 
Multiple Device Emulators for HVM Guests, Paul Durrant, Citrix
Multiple Device Emulators for HVM Guests, Paul Durrant, CitrixMultiple Device Emulators for HVM Guests, Paul Durrant, Citrix
Multiple Device Emulators for HVM Guests, Paul Durrant, CitrixThe Linux Foundation
 
V mware workbench_eclipse_con2011_talk
V mware workbench_eclipse_con2011_talkV mware workbench_eclipse_con2011_talk
V mware workbench_eclipse_con2011_talkalantztan
 
AWS Webcast - Customizing AWS ops works with chef 11 and Amazon machine images
AWS Webcast - Customizing AWS ops works with chef 11 and Amazon machine imagesAWS Webcast - Customizing AWS ops works with chef 11 and Amazon machine images
AWS Webcast - Customizing AWS ops works with chef 11 and Amazon machine imagesAmazon Web Services
 
Puppet Camp Charlotte 2015: Managing middleware with Puppet
Puppet Camp Charlotte 2015: Managing middleware with PuppetPuppet Camp Charlotte 2015: Managing middleware with Puppet
Puppet Camp Charlotte 2015: Managing middleware with PuppetPuppet
 

What's hot (20)

Stabilizing SE Build - Selenium conf 2013
Stabilizing SE Build - Selenium conf 2013 Stabilizing SE Build - Selenium conf 2013
Stabilizing SE Build - Selenium conf 2013
 
Selenium grid workshop london 2016
Selenium grid workshop london 2016Selenium grid workshop london 2016
Selenium grid workshop london 2016
 
Ahmed_Cloud_DevOps_Puppet
Ahmed_Cloud_DevOps_PuppetAhmed_Cloud_DevOps_Puppet
Ahmed_Cloud_DevOps_Puppet
 
No BS, Vendor Neutral Comparison of Application Layering Solutions
No BS, Vendor Neutral Comparison of Application Layering SolutionsNo BS, Vendor Neutral Comparison of Application Layering Solutions
No BS, Vendor Neutral Comparison of Application Layering Solutions
 
Spring frame work by rohit malav(detailed)
Spring frame work by rohit malav(detailed)Spring frame work by rohit malav(detailed)
Spring frame work by rohit malav(detailed)
 
TestingBot Introduction: Selenium Grid with Browsers and Mobile Devices
TestingBot Introduction: Selenium Grid with Browsers and Mobile DevicesTestingBot Introduction: Selenium Grid with Browsers and Mobile Devices
TestingBot Introduction: Selenium Grid with Browsers and Mobile Devices
 
Meson: Building a Machine Learning Orchestration Framework on Mesos
Meson: Building a Machine Learning Orchestration Framework on MesosMeson: Building a Machine Learning Orchestration Framework on Mesos
Meson: Building a Machine Learning Orchestration Framework on Mesos
 
Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014
Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014
Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014
 
Feautures
FeauturesFeautures
Feautures
 
Evolution of VS code Java ecosystem
Evolution of VS code Java ecosystemEvolution of VS code Java ecosystem
Evolution of VS code Java ecosystem
 
Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast
Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast
Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast
 
Distributed Testing Environment
Distributed Testing EnvironmentDistributed Testing Environment
Distributed Testing Environment
 
Citrix certified administrator certification
Citrix certified administrator certificationCitrix certified administrator certification
Citrix certified administrator certification
 
Meson: Heterogeneous Workflows with Spark at Netflix
Meson: Heterogeneous Workflows with Spark at NetflixMeson: Heterogeneous Workflows with Spark at Netflix
Meson: Heterogeneous Workflows with Spark at Netflix
 
Multiple Device Emulators for HVM Guests, Paul Durrant, Citrix
Multiple Device Emulators for HVM Guests, Paul Durrant, CitrixMultiple Device Emulators for HVM Guests, Paul Durrant, Citrix
Multiple Device Emulators for HVM Guests, Paul Durrant, Citrix
 
V mware workbench_eclipse_con2011_talk
V mware workbench_eclipse_con2011_talkV mware workbench_eclipse_con2011_talk
V mware workbench_eclipse_con2011_talk
 
Java
JavaJava
Java
 
AWS Webcast - Customizing AWS ops works with chef 11 and Amazon machine images
AWS Webcast - Customizing AWS ops works with chef 11 and Amazon machine imagesAWS Webcast - Customizing AWS ops works with chef 11 and Amazon machine images
AWS Webcast - Customizing AWS ops works with chef 11 and Amazon machine images
 
Sr. devops engineer
Sr. devops engineerSr. devops engineer
Sr. devops engineer
 
Puppet Camp Charlotte 2015: Managing middleware with Puppet
Puppet Camp Charlotte 2015: Managing middleware with PuppetPuppet Camp Charlotte 2015: Managing middleware with Puppet
Puppet Camp Charlotte 2015: Managing middleware with Puppet
 

Viewers also liked

gestion del conocimiento
gestion del conocimiento gestion del conocimiento
gestion del conocimiento HanzelGoyri
 
Présenation mc
Présenation mcPrésenation mc
Présenation mcMaeva23
 
Подбор целевой аудитории вконтакте
Подбор целевой аудитории вконтактеПодбор целевой аудитории вконтакте
Подбор целевой аудитории вконтактеHiconversion
 
ASSURE - Thursday
ASSURE - ThursdayASSURE - Thursday
ASSURE - ThursdayHaleyLynn93
 
Rachel chandra aditama tmb karakteristik transistor_revisi
Rachel chandra aditama tmb karakteristik transistor_revisiRachel chandra aditama tmb karakteristik transistor_revisi
Rachel chandra aditama tmb karakteristik transistor_revisiRachel Aditama
 
UGO ENAJITE OGHENEMAVWE
UGO ENAJITE OGHENEMAVWEUGO ENAJITE OGHENEMAVWE
UGO ENAJITE OGHENEMAVWEEnajite Ugo
 
Виды рекламы в социальных сетях
Виды рекламы в социальных сетяхВиды рекламы в социальных сетях
Виды рекламы в социальных сетяхHiconversion
 
Трехэтажный жилой дом, Сахалин
Трехэтажный жилой дом, СахалинТрехэтажный жилой дом, Сахалин
Трехэтажный жилой дом, СахалинСергей Власкин
 
Evaluacionhabilidadesadaptativas[1]
Evaluacionhabilidadesadaptativas[1]Evaluacionhabilidadesadaptativas[1]
Evaluacionhabilidadesadaptativas[1]Yolanda Angel Juan
 
Sales of goods act 1930
Sales of goods act 1930Sales of goods act 1930
Sales of goods act 1930Mia Manik
 

Viewers also liked (16)

gestion del conocimiento
gestion del conocimiento gestion del conocimiento
gestion del conocimiento
 
Présenation mc
Présenation mcPrésenation mc
Présenation mc
 
Подбор целевой аудитории вконтакте
Подбор целевой аудитории вконтактеПодбор целевой аудитории вконтакте
Подбор целевой аудитории вконтакте
 
ASSURE - Thursday
ASSURE - ThursdayASSURE - Thursday
ASSURE - Thursday
 
Batman #08 [os novos 52]
Batman #08 [os novos 52]Batman #08 [os novos 52]
Batman #08 [os novos 52]
 
Rachel chandra aditama tmb karakteristik transistor_revisi
Rachel chandra aditama tmb karakteristik transistor_revisiRachel chandra aditama tmb karakteristik transistor_revisi
Rachel chandra aditama tmb karakteristik transistor_revisi
 
Assure lesson 1
Assure lesson 1Assure lesson 1
Assure lesson 1
 
UGO ENAJITE OGHENEMAVWE
UGO ENAJITE OGHENEMAVWEUGO ENAJITE OGHENEMAVWE
UGO ENAJITE OGHENEMAVWE
 
Documentacion
DocumentacionDocumentacion
Documentacion
 
Виды рекламы в социальных сетях
Виды рекламы в социальных сетяхВиды рекламы в социальных сетях
Виды рекламы в социальных сетях
 
Lorence Nye NEN2015
Lorence Nye NEN2015Lorence Nye NEN2015
Lorence Nye NEN2015
 
Трехэтажный жилой дом, Сахалин
Трехэтажный жилой дом, СахалинТрехэтажный жилой дом, Сахалин
Трехэтажный жилой дом, Сахалин
 
Evaluacionhabilidadesadaptativas[1]
Evaluacionhabilidadesadaptativas[1]Evaluacionhabilidadesadaptativas[1]
Evaluacionhabilidadesadaptativas[1]
 
DISEÑO DE SALIDA DEL SISTEMA
DISEÑO DE SALIDA DEL SISTEMADISEÑO DE SALIDA DEL SISTEMA
DISEÑO DE SALIDA DEL SISTEMA
 
Sales of goods act 1930
Sales of goods act 1930Sales of goods act 1930
Sales of goods act 1930
 
Historia de la Lógica
Historia de la LógicaHistoria de la Lógica
Historia de la Lógica
 

Similar to Selenium StudyGroup

Session 01 - Introduction to Selenium - Part 2
Session 01 - Introduction to Selenium - Part 2Session 01 - Introduction to Selenium - Part 2
Session 01 - Introduction to Selenium - Part 2SiddharthSelenium
 
Selenium 101 Webinar
Selenium 101 WebinarSelenium 101 Webinar
Selenium 101 WebinarDaniel Herken
 
Guide To Effective Cross Browser Testing
Guide To Effective Cross Browser TestingGuide To Effective Cross Browser Testing
Guide To Effective Cross Browser TestingDaniel Herken
 
Automated Testing on Web Applications
Automated Testing on Web ApplicationsAutomated Testing on Web Applications
Automated Testing on Web ApplicationsSamuel Borg
 
MyHeritage - QA Automations in a Continuous Deployment environment
MyHeritage -  QA Automations in a Continuous Deployment environmentMyHeritage -  QA Automations in a Continuous Deployment environment
MyHeritage - QA Automations in a Continuous Deployment environmentMatanGoren
 
Selenium overview ppt by quontra solutions
Selenium overview ppt by quontra solutionsSelenium overview ppt by quontra solutions
Selenium overview ppt by quontra solutionsQuontra Solutions
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - IntroductionSachin-QA
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - IntroductionANKUR-BA
 

Similar to Selenium StudyGroup (20)

Intro
IntroIntro
Intro
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Introduction
Selenium IntroductionSelenium Introduction
Selenium Introduction
 
Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
 
Selenium
SeleniumSelenium
Selenium
 
Session 01 - Introduction to Selenium - Part 2
Session 01 - Introduction to Selenium - Part 2Session 01 - Introduction to Selenium - Part 2
Session 01 - Introduction to Selenium - Part 2
 
Selenium
SeleniumSelenium
Selenium
 
Selenium And Its Types
Selenium And Its TypesSelenium And Its Types
Selenium And Its Types
 
Selenium 101 Webinar
Selenium 101 WebinarSelenium 101 Webinar
Selenium 101 Webinar
 
Selenium 1
Selenium 1Selenium 1
Selenium 1
 
Guide To Effective Cross Browser Testing
Guide To Effective Cross Browser TestingGuide To Effective Cross Browser Testing
Guide To Effective Cross Browser Testing
 
Automated Testing on Web Applications
Automated Testing on Web ApplicationsAutomated Testing on Web Applications
Automated Testing on Web Applications
 
Selenium presentation
Selenium presentationSelenium presentation
Selenium presentation
 
MyHeritage - QA Automations in a Continuous Deployment environment
MyHeritage -  QA Automations in a Continuous Deployment environmentMyHeritage -  QA Automations in a Continuous Deployment environment
MyHeritage - QA Automations in a Continuous Deployment environment
 
Introduction to selenium
Introduction to seleniumIntroduction to selenium
Introduction to selenium
 
Selenium overview ppt by quontra solutions
Selenium overview ppt by quontra solutionsSelenium overview ppt by quontra solutions
Selenium overview ppt by quontra solutions
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Sel
SelSel
Sel
 

Selenium StudyGroup

  • 1. SELENIUM 101 • Marc A Myers • Lead QA Analyst for EFSS
  • 2.
  • 3. WHAT IS “SELENIUM”? - THE BASICS • Selenium • A suite of tools to automate web browsers across many platforms. • Those tools are the Selenium IDE for Firefox and the Selenium WebDriver. • Can be controlled by several programming languages and testing frameworks. • Many GUI based browser automation tools, APIs, and frameworks are built on top of Selenium.
  • 4. SELENIUM IDE • A Firefox add-on that does simple record and playback of browser events. • Ideal environment for quickly creating Selenium tests. • Offers Debugging and breakpoints for tests created • Export tests as HTML, Ruby scripts, and other formats.
  • 5. SELENIUM WEBDRIVER • Selenium 1.0 + WebDriver = Selenium 2.xx • A collection of language specific bindings to drive a browser. • It makes direct calls to the browser using each browser’s native support for automation. • The key interface against which tests are to be written in Java.
  • 6. BASIC TEST ENVIRONMENT CONFIGURATION • Maven Project > TestNG (Assertions) > Selenium WebDriver > Browser • Testing one local browser at a time on the same machine as the IDE/test runner that is executing/running the test. • Advantages of this configuration: • Easy to troubleshoot your tests • Watch as the tests run locally, observe potential defects as they occur • Quick and easy to set up
  • 7. DISADVANTAGES OF A BASIC CONFIGURATION • Restricted to the browsers available to your OS version/local machine. • In the case of IE, generally only the highest supported IE can be installed. • Assuming you’re on Windows, you’re not able to test against other OS and browser versions such as Safari or OSX and Linux versions of Chrome and Firefox. • It’s not scalable • Running a system or performance test can be taxing on your local machine and it holds your resources hostage until the tests have completed.
  • 8.
  • 9.
  • 10. SELENIUM GRID • Supports distributed test execution. • This means running tests in a “distributed test execution” environment. • This allows you to scale test coverage by distributing your tests to several machines, with the option of parallel execution. • Manages multiple environments from a central point.
  • 11. SELENIUM GRID CONT. • A grid is made up of a HUB and several NODES. • The HUB is the central point that will receive all test requests and distribute them to the NODES. • The NODES are where your testing will occur. • One NODE can have several available browsers. • A NODE can also be a mobile device.
  • 12.
  • 13. WHY TESTNG? • Superior Parameter based testing • With @DataProvider • Advanced dependency testing • Tests can rely on each other • Suite Testing • Test groups and types • TestNG can run JUnit tests
  • 14. WHY MAVEN? • Dependency Management • Avoids common client conflicts • Handles downloading, installing, and keeping track of different version of dependencies. • Streamlined Build Process • You don’t have to understand how a project works to clone it and build it.