Framework is a combination of test-data handling, coding standards, and object repository management that are followed during automation scripting which results in producing beneficial outcomes such as re-usage of the same code in multiple projects, higher portability and decrease the script maintenance cost etc.
Types of Automation Frameworks:
# Test Library Architecture Framework: Test scripts are initially created using "Record & Playback" method. After that tasks inside the scripts are grouped into Functions. There Functions are called by main text script which is called Driver in different ways to create test cases.
# Data Driven Testing Framework: Test case logic resides in Test Scripts and Test Data is separated and kept outside the Test Scripts in this type of framework. Test Data is read from external files such as Excel Files, Text Files, CSV Files, etc. and are saved in the Test Script as variables.
# Keyword Driven Framework: The Keyword-Driven consists of data tables and keywords, and is not dependent on automation tool for execution.