Monday, April 11, 2016

Linear Framework in QTP

Linear Framework is the framework where you write the scripts in a step by step manner as depicted in the test case flow. In this type of framework, you don’t create any functions and all the steps are written one after the other in a linear fashion. Suppose you have a test case with the following flow -> Login > Create Order -> Logout, the test script for this will be written as –




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:

About Me

My photo
Hi all,I am Arun Singh Rajaputra. I am working as a Project Lead in a reputed organization in Hyderabad, AP, India. I have little bit knowledge on Quick Test Professional and like to share my knowledge to all through this blog.

Subscribe to get updates on this blog

Enter your email address:

NOTE

Some of the posts posted in this blog are collected and most of them have been prepared by me. If any one have objections regarding any copied posts. Please mail me so that I can take a necessary action on that post.