Components and Workflow in Linear Framework
Following diagram illustrates the components and the typical workflow of the Linear Framework in QTP.
Here each test case has its own local object repository and the data is hard-coded in the script.
Advantages of Linear Framework
- Automation expertise not required as record and playback method can be used to create scripts.
- Fastest and easiest way to create test scripts.
- Understanding the framework flow is very easy as the scripts are written in a linear manner.
Disadvantages of Linear Framework
- The only way to reuse the code will be to copy paste it in different test cases which leads to code duplication.
- Since data is hard coded in the script, the same test case cannot be run for multiple data values without changing data after each run.
- In case of any changes lot of rework would be required as the reusable code is duplicated at a lot of places.
No comments:
Post a Comment