www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Agenda
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Agenda For The Session
i. Need for a Selenium Framework
ii. What is a Selenium Framework?
iii. Types of frameworks:
i. Data Driven testing framework
ii. Keyword Driven testing framework
iii. Hybrid framework
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Need For Selenium Framework
Finding & fixing a bug in a million line code is insanely challenging.
Automation, Simplicity & Efficiency makes a testers life easy!
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Benefits Of A Selenium Framework
2
Improved Code Readability
4
Reduced Script maintenance
1
Increased Code Re-usage
3
Higher Portability
Finding a bug in a million line code is insanely challenging.
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
What Is A Selenium Framework
Selenium framework is a code structure to make
code maintenance simper & code readability better
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Types Of Selenium Frameworks
Types of
Frameworks
Test
Script
Data
Set
Code and data stored separately
DATA DRIVEN FRAMEWORK
Test
Script
Code and Methods stored
separately
KEYWORD DRIVEN FRAMEWORK
Methods
HYBRID FRAMEWORK
Uses the best features of both
Selenium framework is a code structure to make
code maintenance simper & code readability better
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Data Driven Framework
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
What Is Data Driven Framework?
Data Driven Framework is a testing strategy in which the data set under test, is stored separately from the test script.
Test
Script
Data
Set
Code and data stored separately
DATA DRIVEN FRAMEWORK
→ Automation testing is driven by the data set under test.
→ Same test script will work for different data sets.
→ Eg:- Login credentials stored in excel & passed as parameters to the code.
Features
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Can Selenium WebDriver read data from an
Excel file for input?
The Question Is:-
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Selenium WebDriver + Apache POI
No! Selenium WebDriver does not support read and write operations on excel files.
But, it can be supported with the integration of third party tool (Apache POI).
.xlsx
.xls
Apache POI is a library, which allows you to read, create & edit Microsoft Office-documents using Java.
Advantages:- Easy maintenance and improved test coverage.
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Integrating Selenium WebDriver & Apache POI
Username
field
Password
field
Method which takes the input
from the mentioned Excel file.
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Keyword Driven Framework
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
What Is Keyword Driven Framework?
Keyword Driven Framework is a strategy in which the methods to be tested, is stored in an external file.
Test
Script
Code and methods stored separately
KEYWORD DRIVEN FRAMEWORK
→ Automation testing is driven by the file containing the method names to
be tested.
→ The same script will work for executing the methods mentioned in the file.
→ Eg:- Method names to be executed are stored in the excel.
Features
Methods
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Demo: Method Names Stored In Excel File
Method names present
here will be executed as
part of the test case.
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Hybrid Framework
Uses the best features of Data Driven & Keyword Driven framework
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
Demo: Java Reflection Class Is Used
Java reflection class is used to import the
methods of one class into another class
www.edureka.co/testing-with-selenium-webdriverSELENIUM CERTIFICATION TRAINING
WebDriver vs. IDE vs. RC
➢ Data Warehouse is like a relational database designed for analytical needs.
➢ It functions on the basis of OLAP (Online Analytical Processing).
➢ It is a central location where consolidated data from multiple locations (databases) are stored.

Selenium Framework using Java | Selenium Tutorial | Selenium Training Online | Edureka