WHAT IS THE DESCRIPTIVE programming when it is useful? &
when to use this ?

Answer Posted / manish gupta

List few scenarios where Descriptive Programming MUST be
used?

1. For an object which will be used only once or
twice, there’s no need to use the slow, complex Object
Repository. DP should be used.

2. In case the identification properties and values of
an object match more than one object; QTP will throw
an "Object’s description matches more than one of the
objects currently displayed in your application" error (If
OR is used).
DP easily deals with double objects by using the
index property. We can add “Index:=X” to the description
strings (when X is a zero-based counter), and QTP will
point to object #X.
3. Some objects change hierarchies i.e. an object will
appear under a different parent each time (e.g. – a pop-up
which appears under the initiating sub-window). In some
applications, the only way to work with such objects is
with DP.
4. When using an Object Reference in an External
Function, it is difficult to make sure that the relevant
object is being defined in the Calling Action’s Object
Repository or Even if it is defined, does it have the same
Logical Name? Descriptive Programming is the only option
left.




5. Instead of working with a single object at a time,
we can gather all the objects which answer to our
identification properties, and work with them as a
collection.

For Example:- Suppose you are testing Yahoo Website.
After you login, it lists all the mails present in your
inbox with a checkbox for each mail. Using this checkbox
you can select a mail for deletion or for moving it etc.

But when you design your test, you do not know how
many check boxes (mails) will be displayed on the page, and
you cannot, of course, know the exact object description of
each check box. In this situation, you can use a
programmatic description to instruct QuickTest to perform a
Set "ON" method for all objects that fit the description:
HTML TAG = input, TYPE = check box.
6. When testing a “NOT YET DEVELOPED” build, DP must
be used.
7. Size of Object Repository adversely affects the
performance of QTP. Huge OR slows QTP down.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the flaws in water fall model and how to overcome it?

645


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1466


How does quicktest professional identifies the object in the application?

648


In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls

1534


Tell some commonly used Excel VBA functions?

705






How to find operating system information using the qtp script?

685


How will you report the bug and explain the defect tracking sheet you handled?

2647


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

1509


Object repositories types, which and when to use?

692


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1655


Explain quicktest professional (qtp) testing process?

634


What are the differences between quicktest professional (qtp) and winrunner?

671


Get the count of files of similar types from a folder.

1075


What are the different attributes used with regular expression?

640


What are the features and benefits of quick test pro (qtp 8.0)?

684