Test Automation Using
Selenium
Karapet Sarkisyan
Contest
What is Automated Testing?
• Why Automated Testing?
• Advantages and Disadvantages of Automated Testing
• Selecting an Automation Tool
• Automation Testing Tools In The Market
Selenium
• What is Selenium
• Advantages Of Selenium
• Selenium Components
Why Automated Testing?
Automated Software Testing Saves Time and Money
Vastly Increases Your Test Coverage
Testing Improves Accuracy
Automation Does What Manual Testing Cannot
Automated QA Testing Helps Developers and Testers
QA and Dev Team Morale Improves
Advantages and Disadvantages of
Automated Testing
Advantages
Reliable: eliminating human error
Reusable
Better Quality Software
Fast
Cost Reduction
Disadvantages
High investment is needed in the tools
and training
High man power requirement for test
preparations
A lot of testing areas left uncovered
Selecting an Automation Tool
Support for Various Operating Systems, Applications and Platforms
Support for Mobile Devices
Support for Various Software Testing Types
Creating Automated Tests Without Programming
Recording Automated Software Tests
Creating Cross-Browser Web Tests
Creating Cross-Platform Mobile Web Tests
Automation Testing Tools In The Market
Commercial Testing Tools
QTP
HP Mercury WinRunner
IBM Rational Functional Tester
Micro Focus Silk Test
Seleniu
m
Watir
Sikuli
FitNesse
Open Source Testing Tools
What is Selenium?
Selenium is a chemical element:
 Chemical Symbol: Se
 Atomic Number: 34
 Atomic Mass: 78.96
 Melting Point: 428.9F
 Element Classification: Non-Meta
 Crystal Structure: Hexagonal
What is Selenium?
Browser based Web Application testing tool
Open Source License
Extensible Framework
Support Mobile TestingAndroid/iOS
Write Test Cases using Language of choice Java, C#, Python, Ruby & HTML
Supports Native Browser Testing
Advantages Of Selenium
Open Source, free of cost for companies
Supports Native Testing for all major Browsers
Customize According to the Requirements
AJAX based Testing
Only tool to support Test Case Language of Choice Java, C#, Python & Ruby.
Selenium 2 .., Web Drivers is developed by Google and all the google products
are tested with Selenium.
Web companies such as Facebook, Twitter, LinkedIn, Groupon uses Selenium.
Selenium Components
Selenium Core
Selenium IDE
Selenium RC (Remote Control)
Selenium Web Drivers
Selenium Grid
Selenium Core
Selenium Core is a component core JavaScript Library developed by the Jason
Huggins and ThoughtWorks Team.
Selenium Core is the foundation for other components Selenium IDE &
Selenium RC
Selenium IDE
Can do Record and Playback
Create & edit Test Cases & Test Suites
Extensions for Firefox
Run Selenese Commands
Convert Test Case to different languages
Selenium IDE
General Selenese Commands
clicking a link - click or clickAndWait commands
entering values - type command
selecting options from a drop-down list-box - select command
clicking checkboxes or radio buttons - click command
Selenium IDE -> Bye-Bye
Selenium IDE
Selenium Remote Control (RC)
Selenium RC is a test tool that allows you to write automated web application UI
tests in any programming language against any HTTP website using any
mainstream JavaScript-enabled browser.
Selenium RC comes in two parts.
1. A server which automatically launches and kills browsers, and acts as a HTTP proxy
for web requests from them.
2. Client libraries for your favorite computer language.
Selenium RC
Selenium Web Driver
Selenium Web Driver is in version 2.0
Selenium Web Driver APIs makes Native API calls to the browser.
Native automation faster and a little less prone to error and browser
configuration
Does not Requires Selenium-RC Server to be running
Access to headless HTMLUnit can allow really fast tests
Selenium Grid
Selenium-Grid allows the Selenium-RC solution to scale for test suites or test
suites to be run in multiple environments.
With Selenium-Grid multiple instances of Selenium-RC are running on various
operating system and browser configurations, each of these when launching
register with a hub. When tests are sent to the hub they are then redirected
to an available Selenium-RC, which will launch the browser and run the test.
This allows for running tests in parallel, with the entire test suite
theoretically taking only as long to run as the longest individual test.
Questions ???
test-automation-selenium-160216124839.pptx

test-automation-selenium-160216124839.pptx

  • 1.
  • 2.
    Contest What is AutomatedTesting? • Why Automated Testing? • Advantages and Disadvantages of Automated Testing • Selecting an Automation Tool • Automation Testing Tools In The Market Selenium • What is Selenium • Advantages Of Selenium • Selenium Components
  • 3.
    Why Automated Testing? AutomatedSoftware Testing Saves Time and Money Vastly Increases Your Test Coverage Testing Improves Accuracy Automation Does What Manual Testing Cannot Automated QA Testing Helps Developers and Testers QA and Dev Team Morale Improves
  • 4.
    Advantages and Disadvantagesof Automated Testing Advantages Reliable: eliminating human error Reusable Better Quality Software Fast Cost Reduction Disadvantages High investment is needed in the tools and training High man power requirement for test preparations A lot of testing areas left uncovered
  • 5.
    Selecting an AutomationTool Support for Various Operating Systems, Applications and Platforms Support for Mobile Devices Support for Various Software Testing Types Creating Automated Tests Without Programming Recording Automated Software Tests Creating Cross-Browser Web Tests Creating Cross-Platform Mobile Web Tests
  • 6.
    Automation Testing ToolsIn The Market Commercial Testing Tools QTP HP Mercury WinRunner IBM Rational Functional Tester Micro Focus Silk Test Seleniu m Watir Sikuli FitNesse Open Source Testing Tools
  • 7.
    What is Selenium? Seleniumis a chemical element:  Chemical Symbol: Se  Atomic Number: 34  Atomic Mass: 78.96  Melting Point: 428.9F  Element Classification: Non-Meta  Crystal Structure: Hexagonal
  • 8.
    What is Selenium? Browserbased Web Application testing tool Open Source License Extensible Framework Support Mobile TestingAndroid/iOS Write Test Cases using Language of choice Java, C#, Python, Ruby & HTML Supports Native Browser Testing
  • 9.
    Advantages Of Selenium OpenSource, free of cost for companies Supports Native Testing for all major Browsers Customize According to the Requirements AJAX based Testing Only tool to support Test Case Language of Choice Java, C#, Python & Ruby. Selenium 2 .., Web Drivers is developed by Google and all the google products are tested with Selenium. Web companies such as Facebook, Twitter, LinkedIn, Groupon uses Selenium.
  • 10.
    Selenium Components Selenium Core SeleniumIDE Selenium RC (Remote Control) Selenium Web Drivers Selenium Grid
  • 11.
    Selenium Core Selenium Coreis a component core JavaScript Library developed by the Jason Huggins and ThoughtWorks Team. Selenium Core is the foundation for other components Selenium IDE & Selenium RC
  • 12.
    Selenium IDE Can doRecord and Playback Create & edit Test Cases & Test Suites Extensions for Firefox Run Selenese Commands Convert Test Case to different languages
  • 13.
  • 14.
    General Selenese Commands clickinga link - click or clickAndWait commands entering values - type command selecting options from a drop-down list-box - select command clicking checkboxes or radio buttons - click command
  • 15.
    Selenium IDE ->Bye-Bye Selenium IDE
  • 16.
    Selenium Remote Control(RC) Selenium RC is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser. Selenium RC comes in two parts. 1. A server which automatically launches and kills browsers, and acts as a HTTP proxy for web requests from them. 2. Client libraries for your favorite computer language.
  • 17.
  • 18.
    Selenium Web Driver SeleniumWeb Driver is in version 2.0 Selenium Web Driver APIs makes Native API calls to the browser. Native automation faster and a little less prone to error and browser configuration Does not Requires Selenium-RC Server to be running Access to headless HTMLUnit can allow really fast tests
  • 19.
    Selenium Grid Selenium-Grid allowsthe Selenium-RC solution to scale for test suites or test suites to be run in multiple environments. With Selenium-Grid multiple instances of Selenium-RC are running on various operating system and browser configurations, each of these when launching register with a hub. When tests are sent to the hub they are then redirected to an available Selenium-RC, which will launch the browser and run the test. This allows for running tests in parallel, with the entire test suite theoretically taking only as long to run as the longest individual test.
  • 20.