SlideShare a Scribd company logo
SELENIUM
101
• Marc A Myers
• Lead QA Analyst for EFSS
Selenium StudyGroup
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 StudyGroup
Selenium StudyGroup
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.
Selenium StudyGroup
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

PPTX
10 Reasons to Use an IDE for OpenVMS Development
PPTX
Lateral Movement with PowerShell
PPTX
The Devopsification of Windows Server
PDF
Denis Baranov - Root via XSS
PPTX
.Net deep dive: CLR & IL
PPTX
intoduction to java
PPT
Intro to Java Technology
PPTX
Managing Large Selenium Grid
10 Reasons to Use an IDE for OpenVMS Development
Lateral Movement with PowerShell
The Devopsification of Windows Server
Denis Baranov - Root via XSS
.Net deep dive: CLR & IL
intoduction to java
Intro to Java Technology
Managing Large Selenium Grid

What's hot (19)

PPTX
Stabilizing SE Build - Selenium conf 2013
PDF
Selenium grid workshop london 2016
DOC
Ahmed_Cloud_DevOps_Puppet
PPTX
No BS, Vendor Neutral Comparison of Application Layering Solutions
PPTX
Spring frame work by rohit malav(detailed)
PPTX
Meson: Building a Machine Learning Orchestration Framework on Mesos
PPTX
Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014
DOCX
PPTX
Evolution of VS code Java ecosystem
PPTX
Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast
PDF
Distributed Testing Environment
PDF
Citrix certified administrator certification
PPTX
Meson: Heterogeneous Workflows with Spark at Netflix
PDF
Multiple Device Emulators for HVM Guests, Paul Durrant, Citrix
PPTX
V mware workbench_eclipse_con2011_talk
PPTX
DOCX
Sr. devops engineer
PDF
Puppet Camp Charlotte 2015: Managing middleware with Puppet
PPTX
Automation - Azure training day Cloud security and governance
Stabilizing SE Build - Selenium conf 2013
Selenium grid workshop london 2016
Ahmed_Cloud_DevOps_Puppet
No BS, Vendor Neutral Comparison of Application Layering Solutions
Spring frame work by rohit malav(detailed)
Meson: Building a Machine Learning Orchestration Framework on Mesos
Delivering eBay's CI Solution with Apache Mesos & Docker - DockerCon 2014
Evolution of VS code Java ecosystem
Go Fast, Go Safe, Go on Vacation - Compuware ISPW Webcast
Distributed Testing Environment
Citrix certified administrator certification
Meson: Heterogeneous Workflows with Spark at Netflix
Multiple Device Emulators for HVM Guests, Paul Durrant, Citrix
V mware workbench_eclipse_con2011_talk
Sr. devops engineer
Puppet Camp Charlotte 2015: Managing middleware with Puppet
Automation - Azure training day Cloud security and governance
Ad

Viewers also liked (16)

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

Similar to Selenium StudyGroup (20)

PPTX
PPTX
PPTX
Selenium
PPT
Selenium Introduction
PPT
Selenium (1)
PPTX
Presentation On Selenium testing and its parts
PPT
Selenium
PPTX
Session 01 - Introduction to Selenium - Part 2
PPT
Selenium
PPTX
Selenium And Its Types
PPTX
Selenium 101 Webinar
PPTX
Selenium 1
PPTX
Guide To Effective Cross Browser Testing
PPTX
Automated Testing on Web Applications
PPTX
Selenium presentation
PPTX
MyHeritage - QA Automations in a Continuous Deployment environment
PPTX
Introduction to selenium
PPTX
Selenium overview ppt by quontra solutions
PPSX
Selenium - Introduction
PPTX
Selenium - Introduction
Selenium
Selenium Introduction
Selenium (1)
Presentation On Selenium testing and its parts
Selenium
Session 01 - Introduction to Selenium - Part 2
Selenium
Selenium And Its Types
Selenium 101 Webinar
Selenium 1
Guide To Effective Cross Browser Testing
Automated Testing on Web Applications
Selenium presentation
MyHeritage - QA Automations in a Continuous Deployment environment
Introduction to selenium
Selenium overview ppt by quontra solutions
Selenium - Introduction
Selenium - Introduction

Selenium StudyGroup

  • 1. SELENIUM 101 • Marc A Myers • Lead QA Analyst for EFSS
  • 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.
  • 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.
  • 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.