Frameworks in Selenium
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 frame work
3) key board driver frame work
4) Hybrid frame work
1) Modular framework:--
It is the basic frame work and also known as linear fw.
Application will be divided into multiple modules by the automation engg
He will develop the scripts for all the module.
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:-
From this framework onwards, Selenium introduces external files like excel extend xml, data base a.tic to take the input data as well as to give the output results.
It contains the driver scripts which is responsible for execution.
Driver scripts doesn’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 data driver framework.
If any change in application it can be updated in the external file .so maintenance is easy.
Driver script can be develop based on the common fields in the application. so it is responsible for all kinds of application.
when the application is under development. The driver scripts can be develop.
It is a 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 an the fields ,we can use the driver scripts.
Developing the driver scripts is a challenge ,it needs 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 use 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 an Indepth knowledge on Selenium, click on below