Can any body explain me how to prepare QTP frame work with
an example?? alexander.gdk@gmail.com



Can any body explain me how to prepare QTP frame work with an example?? alexander.gdk@gmail.com..

Answer / maseed

In QTP There are $types of frame works
1---Linear
For the beginers we use this type of testing
2---Modular
when ever we have reusability we use this modular frame work
login is a reusable fn for gmail, or yahoo we can save it in a drive for calling when ever you want in the current function
3--Data Driven
4---Keyword driven
For example Take E-Banking Admin Login , Banker Creation

Data Driven

we can use data driven for the parametrisation , means
Take Excel sheet Take Two columns as Uid,Pwd
Save Excel sheet in a drive
1'Add sheet to the data table
2'import data table of Existing sheet in to New sheet
3'Row-count
4 Assign variables
a = datatable.value ("uid","New_Sheet")
b = datatable.value ("pwd","New_Sheet")
Browser().Page().WebEdit(UserName).set a
Browser().Page().WebEdit(UserName).set b

Keyword Driven
we have three sheets in the excel
1--- module
2----testcase
3----keyword
we have to comare all three sheets
we use if statements in this frame work
if mexe = y then
we compare all three sheets in keyword driven to open the application
we use functions in this frames work , we call function names in the action to execute the script.............

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

While scripting do we use any reference. may be we have 2 0r more same objects that time how do we write scripts

2 Answers  


Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints

0 Answers  


The Senario is Steps to do 1.Entered userid in textbox 2.saved with details 3.i want to open user which i have created its in hurry.....

1 Answers  


Hi friends, I have heard that it is required to have an application hosted in the same machine where we use QTP. Otherwise QTP may identify the objects incorrectly. Please clear me is it true.

3 Answers  


what is the script(qtp) to export and import the datas from MSaccess to Excel sheet.if anybody know plz tell me.

3 Answers  






what is the process to follow between writing the test cases & then atomating it?

1 Answers  


can u tell me the the cost of automation tool QTP ?

7 Answers   Ducont, Sonata,


How do u retrieve data from a text file into different variables. i.e. in a text file named "source" , the data is like : india,1000,japan,200,china,50,singapore,45050 this is given in the first line of the text file. in the second line of the text file the dta is: sun,moon,planet,river,earth,water if u use "readline" method by using FSO concept u can retrieve the entire line in to a variable. but i want to import each field (ex: "india" in one variable, "1000" in another variable etc..). Apprecitae proper replies.

5 Answers   Semantic Space,


If u r using descriptive programming to identify the object where do u write the script for those objects? do u write it in the expertview? plz do answer its urgent thanks advance.

3 Answers  


when we apply the daily build each and every day,the property may change in the application.so that the created script is not reusable in winrunner and qtp.for ex for date field it is taken dtpicker.at another time it is taken some other name.how can i solve it.

0 Answers  


How to convert QTP's ObjectRepository.mdb file to xml file

1 Answers  


I am trying to read the rediffmail usign the below code. But facing problem, while i user to get the link of the mail, i am getting all the link of the page, While i just want to get only mail name - link (not all the link of an page) so that i able to read the mail message by clcking on them in qtp. Dim Lnk,Webcheckbox Set Lnk= Description. Create '********* To count and display the webcheckbox Lnk("micclass" ).value=" Link" set LinkName= Browser("Welcome to Rediffmail:" ).Page("Welcome to Rediffmail:" ).ChildObjects( Lnk) LinkCount=LinkName. Count msgbox LinkCount For i=1-1 to LinkCount-1 DataTable.SetCurren tRow(i) DataTable.Value( "Name",1) =LinkName( i).GetRoProperty ("name") Next Waiting for the reply Praveen Saini

1 Answers  


Categories