Different Frameworks in Selenium
Def 1:- It is a combination of classes, methods, applications & libraries these all will combine together to work on the application & handling
Def 2:- The structural way of maintaining the scripts is known as frame work.
Maintains means how we are developing the scripts. Is it easy to analysis, update, execute and review the report.
we have multiple frame works.
1) module frame work
2) Data driver framework
3) key board driver frame work
4) Hybrid frame work
1) Modular framework:--
It is the basic framework and also known as linear fw.
The application will be divided into multiple modules by the automation engg
He will develop the scripts for all the modules.
Once the scripts are stable they will integrate in hierarchical order to execute.
Ex:-open url, login, compose, logout.
Interested in mastering Selenium Training? Enroll now for FREE demo on Selenium Training.
2)Data driver framework:-
It contains the driver scripts which is responsible for execution.
Driver scripts don’t contain any of the test cases or test classes we will be available in the external file.
Driver script will take the test data from the external file and executes hence we will call it has a data driver framework.
If any change in the application can be updated in the external file .so maintenance is easy.
Driver script can be developed based on the common fields in the application. so it is responsible for all kinds of applications.
when the application is under development. The driver scripts can be developed.
It is suitable for Agile based applications
If the application contains multiple fields like ido text boxes,100 buttons,100 check boxes etc. Not necessary to develop those many lines of code to work on the fields, we can use the driver scripts.
Developing the driver scripts is a challenge, it needs an expectation
To take all the project related information [test data, locators] is a challenge [problem]
Learn more about Selenium Interview Questions in this blog post.
Keyword driver Framework:-
keyboard means a step, it is a step by step execution
It is very similar to manual testing
Junit &test NG are keyword driver frameworks
The way we have used to develop the test cases in manual testing the same can be followed in a keyboard driver framework by using j unit or test NG.
J unit &test NG predefined frameworks so the maintains is easy
These will provide the test report also
It is suitable for stable applications only
combinations of any two or more framework is known as hybrid framework
For in-depth knowledge on Selenium, click on below
- Io streams /external files in Selenium
- Selenium Grid
- Conditional statements in Selenium
- Different flavors of Selenium
- Selenium WebDriver Features