Topics going to see:
- GUI Testing
- Why we need web GUI automation tools ?
- What is Selenium?
- Why Selenium?
- Selenium types
- Selenium using python
- Sample GUI automation
GUI Testing
- 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 ?
- Manual GUI testing takes long time
- Once the test case is automated, its easy to do a testing again
- Scenarios may be missed sometimes
- Generating the reports
What
is Selenium?
- Selenium automates browsers
- It is a software testing framework for web applications
Why Selenium?
- Its Open source
- Its easy to learn and implement
- Supports multiple browsers
- 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
- Supports parallel execution
Selenium
types
- Selenium IDE – Record & Play
- Selenium WebDriver – Program interface
- Selenium Grid – Parallel execution, Multi instance & Multi platform
Selenium WebDriver using python
- Selenium web driver provides multiple language support (PERL, Python, Java, C#, etc.)
- Easy to write a code
Sample GUI automation
from
selenium import
webdriver
browser
= webdriver.Firefox()
url = 'http://www.google.com'
browser.get(url)