test automation and selenium

21
Test Automation Using Selenium Karapet Sarkisyan

Upload: karapet-sarkisyan

Post on 16-Jan-2017

248 views

Category:

Internet


3 download

TRANSCRIPT

Page 1: Test Automation and Selenium

Test Automation Using

Selenium

Karapet Sarkisyan

Page 2: Test Automation and Selenium

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

Page 3: Test Automation and Selenium

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

Page 4: Test Automation and Selenium

Advantages and Disadvantages of Automated Testing

Reliable: eliminating human error

Reusable

Better Quality Software

Fast

Cost Reduction

High investment is needed in the tools and training

High man power requirement for test preparations

A lot of testing areas left uncovered

Advantages Disadvantages

Page 5: Test Automation and Selenium

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

Page 6: Test Automation and Selenium

Automation Testing Tools In The Market

QTP HP Mercury WinRunner IBM Rational Functional Tester Micro Focus Silk Test

Selenium  Watir  Sikuli  FitNesse

Commercial Testing Tools

Open Source Testing Tools

Page 7: Test Automation and Selenium

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

Page 8: Test Automation and Selenium

What is Selenium?

Browser based Web Application testing tool Open Source License Extensible Framework Support Mobile Testing Android/iOS Write Test Cases using Language of choice Java, C#, Python, Ruby &

HTML Supports Native Browser Testing

Page 9: Test Automation and Selenium

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.

Page 10: Test Automation and Selenium

Selenium Components

Selenium Core Selenium IDE Selenium RC (Remote Control) Selenium Web Drivers Selenium Grid

Page 11: Test Automation and Selenium

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

Page 12: Test Automation and Selenium

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

Page 13: Test Automation and Selenium

Selenium IDE

Page 14: Test Automation and Selenium

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

Page 15: Test Automation and Selenium

Selenium IDE -> Bye-ByeSelenium IDE

Page 16: Test Automation and Selenium

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.

Page 17: Test Automation and Selenium

Selenium RC

Page 18: Test Automation and Selenium

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

Page 19: Test Automation and Selenium

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.

Page 20: Test Automation and Selenium

Questions ???

Page 21: Test Automation and Selenium