Date post: | 16-Jan-2017 |
Category: |
Internet |
Upload: | karapet-sarkisyan |
View: | 251 times |
Download: | 3 times |
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
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
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
QTP HP Mercury WinRunner IBM Rational Functional Tester Micro Focus Silk Test
Selenium Watir Sikuli FitNesse
Commercial Testing Tools
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 Testing Android/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-ByeSelenium 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 ???