explain qtp framework by taking an example?

Answer Posted / sandeepguttikonda

With Some more clarity.

The word framework tell us it is am outline sketch or it a
planning we do before perfomring the task and also it
indicates what we do too.

Here in QTP frameworks are braodly divided into 4 types:
1) Linear Frmework
2) Action Framework or Modular Framework
3) Data Driven Framework
4) Keyword Driven Framework

Note: Any combination of above listed frameworks known as
Hybrid Framework.

Linear Framework: Here we prepare the script using record
and playback method.

Modular or Action Framework: Here we prepare the script
using Reusable Action. Here we have multiple action in role
play and follows Master Action and Sub actions (Reusable
actions) concept.

Data Driven Framework: Here we drive the script with the
help of data in the sheets.
Example: A login page having username and password and
login button.

We need to test the whether the members of the page are
successfully logging in or not into the page.

Hence here we right the script in one action and test with
multiple test data driving from the sheets.

Keyword Driven Framework: Here we prepare the script by
using the functions and drive the script with the keywords
(function Names).

Hybrid Framework: Most in End to end scenario cases (
System Integration Testing) we will go for Hybrid Framework.

Need For framework is as said above it help for easy
development and maintenance. It also helps for the
continuity of the work (development, BCP).

Folder Structure: This also come under one of the activity
in framework other are like proper naming conventions,
giving comment to the code, Documenting the important
things etc.

Actually we will have a clear floder structre in Quality
Center under Test Plan: Like..
1) Reusable Actions
2) Test Data
3) Recovery Scenarios
4) Functions
5) Master Action
6) Deleted Files
7) Test Log
If you need amy further info, please let me know.

Thanks.

Regards,
Sandeep Guttikonda.

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain sub procedure of vbscript.

590


How to add verification steps to tests?

9130


Hoe can we do retesting using functions please give the code for it using login page

1565


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3279


How will you find the current time of the remote machine using QTP script?

597






what is error and fault in terms of software quality?

1507


Explain the features of quick test pro(qtp)?

576


How to export quicktest professional results to an .xls file?

572


Explain process of smart Identification in QTP?

598


after initiating one project for testing, when exacltly QTP tester role starts?

1399


Mention the different actions types of qtp.

575


What is the difference between run time object and test object?

579


Where can I find and view run-time data table?

526


If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP

1301


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

1508