Is Linear Automation Framework

Is Linear Automation Framework

Postby bhavya » Tue Feb 26, 2013 1:06 pm

Is Linear Automation Framework? When is it used?
Posts: 54
Joined: Mon Feb 25, 2013 4:09 pm

Re: Is Linear Automation Framework

Postby Renu » Wed Mar 06, 2013 3:43 pm

Plz post the answer
Posts: 3
Joined: Fri Feb 01, 2013 4:45 am

Re: Is Linear Automation Framework

Postby JyothiP » Tue Apr 16, 2013 5:55 am

Linear Framework is nothing but writing all the steps in your action one after the other in a linear form. This approach is also called linear scripting. In this approach, your entire test case flow will be written in QTP in a linear fashion.

Consider an example where you have a test case to login to application, search for some data and then logout. In linear framework, the code would look like something shown below.

'Code to Open Application
'Code to enter user name in Login Page
'Code to enter password
'Click on Login button and verify successful Login
'Search for the required data
'Logout from the application
'Close the application

As you can see in the above example, you are not doing much in terms of framework creation with this type of QTP Framework. Hence this is the simplest framework to use and implement. The normal Record and Playback that we do with QTP falls under this framework.

Where to Use QTP Linear Framework?
Re-usabilty and maintainability are some of the major factors that are looked at when creating an automation framework. Because of this reason, you would rarely find linear framework being used in any real-life projects.

Since you can’t use it in complex real life automation projects, does this mean that this framework is of no use at all? Well.. not exactly. You can use this framework for the tasks where you want to finish off the work quickly. This can also be used to support manual testing.

Consider this situation. Suppose you are testing an application where you have to create a lot of orders. Now creating these tasks is a lengthy and time consuming process. What you can do here is just record the order creation flow and run the script to create orders.
Posts: 2
Joined: Fri Mar 15, 2013 3:41 am

Return to QTP - Quick Test Professional, HP UFT Online Training - Automation Testing

Who is online

Users browsing this forum: No registered users and 1 guest