Tell about descriptive programing in qtp8.2?

Answers were Sorted based on User's Feedback



Tell about descriptive programing in qtp8.2?..

Answer / vishu

Descriptive Programming is all about identifying an object
uniquely. And there is no defined frame work for it. Frame
work depends on the project.

This is the code for Yahoo Photos Website you can do the
same for the yahoo by changing the values in the required
places.

CODE: Browser("title:=Yahoo! Photos*.*").page
("title:=Yahoo! Photos*.*").WebEdit
("name:=login").set "srinivas"
Browser("title:=Yahoo! Photos*.*").page("title:=Yahoo!
Photos*.*").WebEdit("name:=passwd").set "test"
Browser("title:=Yahoo! Photos*.*").page("title:=Yahoo!
Photos*.*").WebButton("name:=Sign In").click

Is This Answer Correct ?    1 Yes 0 No

Tell about descriptive programing in qtp8.2?..

Answer / sravanthi

If the description of the object specified in the program
itself can be called as descriptive program.Using this we
can execute test script without entries in the OR

Is This Answer Correct ?    0 Yes 0 No

Tell about descriptive programing in qtp8.2?..

Answer / girish

hay ur example on yahoo photos was really a an excellent
one i am actually new to descriptive prograimng if possible
can u send me some more examples or any related stuuf to
my mail id please at tatabirla84@yahoo.co.in


thanks in advance

Is This Answer Correct ?    0 Yes 0 No

Tell about descriptive programing in qtp8.2?..

Answer / imran sheikh

Objects in QTP are recognized by it's properties. When
object cannnot be recorded in OR or cannot be added in OR
due to some reason, we can identify an object by
Descriptive Programming. Small example of web application
which make DP clear is: Suppose there is a link which is
phone number, everytime we log-in with different user phone
link is changed. if we want to click the phone number we
cannot create it's object in repository because OR will
capture the present phone number,next time with second user
it's phone number link will not be clicked.To do that:

Set phoneLink = Description.Create
phoneLink("html tag").value = "Link"
phoneLink("name").value = DataTable.value("phone")
Browser(brw).Page(pg).Link(phoneLink).click

Here 'html tag' and 'name' are property whose value you can
confirm from Spy. If value of phone is there in DataTable
you can use as specified, else you can use regular
expression.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

hi i have one doubt is there any companies are taking correspandence courses plz leme know urjent

2 Answers  


in which case & which method we can use "native" property of an object ?

1 Answers  


How do you create new test sets in td?

0 Answers  


How we test web based application by using QTP

0 Answers  


Tell about descriptive programing in qtp8.2?

4 Answers   GE,






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,


Explain about Test Fusion Report of QTP?

0 Answers  


What is the diffrence bettween QTP 9.0 and QTP 9.1?

1 Answers  


what is TOM in qtp?

5 Answers   Accenture,


what is difference between wait and synchronization point.

3 Answers   IBM, Intel,


Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please

0 Answers   IBM,


How QTP recognizes Objects in AUT?

1 Answers   Crea,


Categories