Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Web Application Testing with Selenium

Web Application Testing with Selenium

Web Application Testing with Selenium
Presentation was used during BarCamp EVN 2015

Sargis Sargsyan

August 28, 2016
Tweet

More Decks by Sargis Sargsyan

Other Decks in Programming

Transcript

  1. Who This Presentation Is For •  Developers or QA (Students

    who will become developer or QA) •  Know the basics of an automation tool •  In this presentation Selenium •  Want to create a real automation framework WELCOME TO THE AUTOMATION FACTORY OF NAIRIT
  2. What this Presentation Covers •  Introduction •  Basic of automation

    •  Why and how we’ll do it •  Designing The Architecture •  How to design an automation framework •  Creating Basic Selenium Test •  The best place to start •  Building Out The Framework •  Refactoring •  Designing framework for more tests •  Best Practices and Tips •  Continuous Integration, Scaling out, Agile, etc. WE WILL AUTOMATE YOU!
  3. Selenium is a web application testing framework that allows you

    to write tests in many programming languages like: •  Java •  C# •  Groovy •  Perl •  PHP •  Python •  Ruby What is Selenium? Selenium deploys on •  Windows, •  Linux, •  MAC OS. It is an open-source project!
  4. 2004 – Jason Huggins creates a JavaScript based tool for

    automatic testing called Selenium (now it is known as Selenium Core). Later Selenium Remote Control (aka Selenium RC) was developed to address the “same host origin” browser policy and allow many language bindings to control the browser at a distance 2006 – Simon Stewart started working on another web testing tool called WebDriver 2009 – Selenium RC and WebDriver are merged into a one project called Selenium-WebDriver (aka Selenium 2.0) 2013 – The first working draft of WebDriver API W3C Specification is released A Bit of History
  5. Terminology •  Selenium Core •  Selenium RC •  Selenium-WebDriver • 

    Selenium Server •  Selenium IDE •  Selenium-Grid
  6. THIS TEST EXPLAINS EXACTLY WHAT I WANT AND WHAT YOU

    AGREED TO Absolute Requirements
  7. I AM AN AUTOMATED TEST, I’LL BE DRIVING TODAY. YOU

    CAN ALL ME ARMAN Test Drive Creation of Framework
  8. •  Test fail because •  The condition testes was not

    met •  An Assertion in the test failed •  Test error because •  Something other than what was being testes failed •  The framework threw an exception IT IS IMPORTANT TO MAKE A DISTINCTION BETWEEN ERRORS & FAILURES Error vs Failures
  9. •  Have a plan and stick to it •  Run

    test as part of build •  Run test locally •  Report results •  Break builds MAKE SURE AUTOMATED TEST ARE TAKEN SERIOUSLY Continuous Integration