Selenium is a framework used to test web applications. A framework defines rules that are followed to achieve particular results. In selenium, there are many types of frameworks including linear scripting, modular testing, and data-driven. These are explained in detail below.
1. Linear Scripting Framework:
A basic automation framework that used to linearly test small apps. Tests are created and executed individually. This Framework is also sometimes known as the ‘Record and Playback.’
Advantages:
Disadvantages:
2. Modular Testing Framework:
Module wise test scripts are created so that an application is broken into smaller, independent modules whose scripts can run individually.
Advantages
Disadvantages
3. Data-driven Framework:
Data-driven test automation separates test scripts, logic, and data from each other. Automation testing scripts that can run with different parameters being passed to them are created. This test data is kept in external files, e.g., CSV, SQL, or XML.
Advantages
Disadvantages
4. Keyword-driven Testing Framework:
It uses a table format to define keywords or action words for each method to execute. Keyword-drive testing is also called table-driven testing or action word based testing.
Advantages
Disadvantages
5. Hybrid-driven Testing Framework:
This framework is a mixture of data-driven and keyword-driven testing and can also include any of the frameworks described above. It tries to take the benefits of different structures and combine them to produce a better, more efficient framework.
5. Behavior-driven Testing Framework:
It allows all the parties involved (e.g., the Business Analysts, Developers, etc.) to actively participate in the running of these tests.
Free Resources