33
Automation using SELENIUM web driver

Automation Using Selenium Webdriver

  • Upload
    edureka

  • View
    1.152

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Automation Using Selenium Webdriver

Automation using SELENIUM

web driver

Page 2: Automation Using Selenium Webdriver

Slide 2 www.edureka.co/selenium

At the end of this module, you will be able to:

Objectives

Understand Manual Testing and its disadvantages

Know about Automation Testing

Learn Selenium and its advantages

Learn Automation Metrics

Understand Selenium Grid and Web driver

Use case: Mambo

Job trends in Selenium

Page 3: Automation Using Selenium Webdriver

Slide 3 www.edureka.co/selenium

Manual Testing

Manually loading the data from database

Page 4: Automation Using Selenium Webdriver

Slide 4 www.edureka.co/selenium

Application Under Test (Financial Services, Telecom, e-commerce and more)

Manually Testing the Application with different sets of data (1000+ records)

Manual Testing (Contd.)

Page 5: Automation Using Selenium Webdriver

Slide 5 www.edureka.co/selenium

Manual Testing (Contd.)

Creating test result file, taking screenshots of validation points, loading all the documents on share drive for SME review and sharing files with other resources

Test Result

Loading Documents

Data processing

Validations

Page 6: Automation Using Selenium Webdriver

Slide 6 www.edureka.co/selenium

Manual Testing (Contd.)

Report Generation for higher management

Geography Analysis

Graph & Chart Analysis

Data Analysis

Finance Analysis

Page 7: Automation Using Selenium Webdriver

Slide 7 www.edureka.co/selenium

Manual Testing (Contd.)

It’s boring !!I have to do the same process again and again with multiple

sets of data. There is no change in the application as well

Page 8: Automation Using Selenium Webdriver

Slide 8 www.edureka.co/selenium

Automated Data transfer from database

Selenium: Automation Testing

Page 9: Automation Using Selenium Webdriver

Slide 9 www.edureka.co/selenium

Auto-generation of result file

Automated execution through test scripts

Selenium: Automation Testing (Contd.)

Taking Screenshot and Auto-generation of report

Page 10: Automation Using Selenium Webdriver

Slide 10 www.edureka.co/selenium

Thanks to Automation

Amazing !!Now I don’t have to do the same

process again and again with different sets of data. Everything is handled by the tool itself. Even

execution flow is too fast.

Selenium: Automation Testing (Contd.)

Page 11: Automation Using Selenium Webdriver

Slide 11 www.edureka.co/selenium

Selenium is used to automate web applications across different platforms using different programming languages

Support for

Different programming languages - Java, Python, PHP, Ruby, Perl, JavaScript

Different Operating Systems - Windows, Mac, Linux, iOS, Android

Different Browsers – IE, Firefox, Chrome, Safari, Opera

What is Selenium?

Page 12: Automation Using Selenium Webdriver

Slide 12 www.edureka.co/selenium

Advantages

Manual TestingAutomation Testing

using Selenium

Page 13: Automation Using Selenium Webdriver

Slide 13 www.edureka.co/selenium

Selenium Web Driver Founders

Page 14: Automation Using Selenium Webdriver

Slide 14 www.edureka.co/selenium

Web Application

Page 15: Automation Using Selenium Webdriver

Slide 15 www.edureka.co/selenium

Test Execution Calculation

Automation Metrics

Test Script Preparation

ReliabilityTime to

Market

Cross Browser testing

Cost Reduction

4000 Test Cases4 ResourcesPer resource = 1000Per resource = 1000/40 =25 Days

4000 Test Cases4 ResourcesPer resource = 1000Per resource = 1000/20 = 50 Days

Total = 4000Day 1 = 24*60 minutesPer script execution = 5 minutes(60 * 9) / 5 minutes = 108 Test Cases / machine(60 * 24 ) / 5 minutes = 288 Test Cases / machine

4 Machine = 288 * 4 = 1152 Test Cases1152 * 4Days = 4608 Test Cases

Page 16: Automation Using Selenium Webdriver

Slide 16 www.edureka.co/selenium

Unique Features of Selenium

Supports almost every OS

Open Source

Cost-effective automation testing

Supports multiple programming languages

Independent of Web Application programming language

Supports Multiple browsers

More options to find an object

OOPs to support Keyword Driven, Data Driven and Hybrid Framework

Provides support for open source frameworks like TestNG, Junit & Nunit

Parallel Execution

Page 17: Automation Using Selenium Webdriver

Slide 17 www.edureka.co/selenium

Selenium Grid

Selenium-Grid allows us to execute Test Script on different machines at the same time (parallel execution) from

one system called Hub

Each machine is called node

That is, Selenium-Grid runs multiple tests at the same time against different machines running different

browsers and operating systems

Page 18: Automation Using Selenium Webdriver

Slide 18 www.edureka.co/selenium

Parallel Execution

Platform Independent

Language Independent

Browser Independent

Fast Execution

Node 1: IE on Windows

Node 2: Android

Node 3: Safari on MAC

Node 4: Firefox in Ubuntu

Selenium Grid (Contd.)

Page 19: Automation Using Selenium Webdriver

Slide 19 www.edureka.co/selenium

Selenium Web Driver

Selenium Web Driver

Cross Browser Testing

Parallel Testing

Supports Different Language Scripting

Supports Different Operating System

Easy Framework Development

Firefox, Chrome, IE, Safari

Multiple browser in same time

JAVA, C#, PHP, Ruby, Perl, Python

Windows, Mac, Linux, Android, iOS

Keyword Driver, Data driven, etc.

Page 20: Automation Using Selenium Webdriver

Slide 20 www.edureka.co/selenium

There are many periodic tasks such as updating data into the database, taking the backup of database that developers and administrators has to perform at every specific time

Following are the problems in doing them:

» Need to track the run of the process

» Every task has to be started at scheduled time

» It is very difficult to track where the problem happened

Problem Statement

Page 21: Automation Using Selenium Webdriver

Slide 21 www.edureka.co/selenium

We can automate these tasks using Selenium WebDriver

Using Selenium WebDriver we can perform all user interaction that a user do manually. That saves us from the

tedious periodic task

We will perform testing on Mambo which is a popular Content Management System (CMS)

We will use Keyword Driven Framework so that it should work as per user instructions

Data to interact with the Mambo will come through the excel sheet

Test will handle Textboxes, Links, Checkboxes, Radio Buttons, Submit Button

Test will also navigate through Mambo Menu navigation. So we will be able to automate the Mambo

Administration using Selenium WebDriver

Solution: Selenium

Page 22: Automation Using Selenium Webdriver

Slide 22 www.edureka.co/selenium

Mambo Login

Page 23: Automation Using Selenium Webdriver

Slide 23 www.edureka.co/selenium

Mambo Admin

Page 24: Automation Using Selenium Webdriver

Slide 24 www.edureka.co/selenium

Mambo Navigation

Page 25: Automation Using Selenium Webdriver

Slide 25 www.edureka.co/selenium

Mambo Action

Page 26: Automation Using Selenium Webdriver

Slide 26 www.edureka.co/selenium

Interaction with Mambo

Page 27: Automation Using Selenium Webdriver

Slide 27 www.edureka.co/selenium

Demo

Page 28: Automation Using Selenium Webdriver

Slide 28 www.edureka.co/selenium

Companies Using Selenium

Page 29: Automation Using Selenium Webdriver

Slide 29 www.edureka.co/selenium

Selenium– Job Trends

Page 30: Automation Using Selenium Webdriver

Questions

Slide 30 Twitter @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions www.edureka.co/selenium

Page 31: Automation Using Selenium Webdriver

Slide 31 www.edureka.co/selenium

Module 1 » Introduction to Selenium & its components

Module 2» Selenium RC and Locater Techniques

Module 3 » Selenium WebDriver

Module 4 » Validation and Designing of Framework

Module 5» WerDriver Advanced Usage and Selenium IDE

Module 6» Programming and Report Generation

Module 7» Selenium-Grid, Sikuli, TestNG, Automating with AutoIt

Module 8» Project

Course Topics

Page 32: Automation Using Selenium Webdriver

LIVE Online Class

Class Recording in LMS

24/7 Post Class Support

Module Wise Quiz

Project Work

Verifiable Certificate

Slide 32 www.edureka.co/selenium

How it Works?

Page 33: Automation Using Selenium Webdriver