( Selenium Training: https://www.edureka.co/testing-with-selenium-webdriver )
Selenium Frameworks are used to optimize the code structure and helps in code maintenance. Watch this video on "Selenium Framework using Java" to learn how the three common Selenium frameworks can be created. The three Selenium frameworks are:
1. Data Driven Framework using java
2. Keyword Driven Framework
3. Hybrid Frmaework
Introduction to Selenium blog: https://goo.gl/b523IO
Check our complete Selenium playlist here: https://goo.gl/NmuzXE
6. 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
8. 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
10. 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.
13. 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