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

General Ques : At What State u start Automating ? means at what stage we start writing QTP scripts ?

2 Answers  


What’s the QTP testing process?

1 Answers  


Can anyone tell me about "Step- By Step Paramterization". among the two paramaterizations, Step by step and Parameterize All, which one is mostly used.

0 Answers  


I have a list box which contains duplicate values e.g. A,A,A,B,B,B,C,C,C.Now write a code in qtp to test the list box . Scenario #1 : I have to check whether any values are there? Scenario #2 : If duplicate values are there,then how many time it is getting duplicated? Svenario #3 : how can I test presence of items in list box ommiting duplicate values?

6 Answers   NIIT,


Where should we turn Smart Identification ON in QTP?

5 Answers  






i did B.Tech cse and i secured 76%. instead of siting at home ... i would like to do some course. can u suggest me in this.

1 Answers  


what is syncurnisation point? what is the use of this in real time environment? plz explain?

6 Answers   AppLabs,


In an interview what r the questions asked in qtp related project? pls any answer this question?

3 Answers  


What is the differences between image check point and bit map check point?

0 Answers  


How to create an instance in QTP?

1 Answers   Collabera,


hai,i want to select an option from the right click pop up menu.but the qtp is not recognizing the right click pop up menu as a seperate object.can any one tell me the solution.

4 Answers   HP,


WHO IS THE BEST FACULTY FOR QTP IN HYDERABAD? A) NAGESHWAR RAO- MINDQ B) SURESH REDDY -SMART SOLUTIONS C) SURESH BABU- Q EDGE D) VENKAT - LIVE TECH E) GC.REDDY - HI-TECH CITY F) NONE OR OTHERS

7 Answers  


Categories