FrameWork Introduction

What is a FrameWork?

A program language that provides a set of ready made methods and functions which is used to do specific actions along with the set rules of which we need to follow is known as framework.

What is a Selenium FrameWork?

A Web FrameWork which is used to reduce the code and helps us to reuse it for Test Automation when we automating web applications.

What is the use of Selenium FrameWork?

  • It is used to reduce the lines of code.
  • We can reuse the code.
  • Decrease the Execution time
  • Reduces the number of Testers.
  • Report for failure and Success test cases.


Types of FrameWorks

  • Data Driven Testing FrameWork
  • KeyWord Driven Test FrameWork
  • Hybrid FrameWork
  • Behavior Driven Development(BDD) Testing Framework

Data Driven Testing FrameWork

In the Data Driven Test automation framework it used to read the test data from external files such as Excel sheet, Text files and CSV files etc.

Once it reads the test data it will store in the test scripts variables and process it to perform testing.

This helps us to reduce the number of test scripts.As it processes the test data which reads from external files into the test scripts which we don't require multiple coded files.


KeyWord Driven Test FrameWork

Here , test data is processed by using keywords specified in the external files such as in excel sheets etc or in test scripts itself.

Those Keywords are specified in multiple test scripts, So it helps us to reuse those keywords in the code.


Hybrid FrameWork

Hybrid framework is a combination of Data driver and keyword driven frameworks.

It uses both the test data types such as it will read the data from excel sheet and also it will try to get the test data from keyword based.


Behavior Driven Development(BDD) Testing Framework

This is an approach to create test cases in simple natural language manner such as english text.

This approach helps every one such as Business analyst , Developers and testers to clearly see the test cases which happen exactly as all the cases are written in simple natural language.