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
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.
From this framework onwards, Selenium introduces external files like excel extend XML, database 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 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.
Advantages:-
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.
Disadvantages:-
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.
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.
Manual:-
1)precondition
2)test scenario
3)postcondition
Keyword driver:
1)Before
2)test
3)after
Advantages:
J unit &test NG predefined frameworks so the maintains is easy
These will provide the test report also
Disadvantages:
It is suitable for stable applications only
Hybrid Framework:-
combinations of any two or more framework is known as hybrid framework
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.