May 29, 2014

Introduction - Selenium

Topics going to see:

  1. GUI Testing
  2. Why we need web GUI automation tools ?
  3. What is Selenium?
  4. Why Selenium?
  5. Selenium types
  6. Selenium using python
  7. Sample GUI automation

GUI Testing

  1. UI testing ensures that your application returns the correct UI output in response to a sequence of user actions on a device, such as entering keyboard input or pressing toolbars, menus, dialogs, images, and other UI controls.

Why we need web GUI automation tools ?

  1. Manual GUI testing takes long time
  2. Once the test case is automated, its easy to do a testing again
  3. Scenarios may be missed sometimes
  4. Generating the reports
   
What is Selenium? 
  1. Selenium automates browsers
  2. It is a software testing framework for web applications

Why Selenium?

  1. Its Open source
  2. Its easy to learn and implement
  3. Supports multiple browsers
  4. Supports multiple scripting/programming languages - Flexible to your choice, simple record and playback (IDE), Compile Framework design to your choice by using your favorite programming language
  5. Supports parallel execution
 Selenium types
  1. Selenium IDE – Record & Play
  2. Selenium WebDriver – Program interface
  3. Selenium Grid – Parallel execution, Multi instance & Multi platform

Selenium WebDriver using python

  1. Selenium web driver provides multiple language support (PERL, Python, Java, C#, etc.)
  2. Easy to write a code

Sample GUI automation 

from selenium import webdriver 
browser = webdriver.Firefox() 
url = 'http://www.google.com' 
browser.get(url)
 
 

No comments:

Post a Comment