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
What are the flaws in water fall model and how to overcome it?
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
How does quicktest professional identifies the object in the application?
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
Tell some commonly used Excel VBA functions?
How to find operating system information using the qtp script?
How will you report the bug and explain the defect tracking sheet you handled?
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
Object repositories types, which and when to use?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
Explain quicktest professional (qtp) testing process?
What are the differences between quicktest professional (qtp) and winrunner?
Get the count of files of similar types from a folder.
What are the different attributes used with regular expression?
What are the features and benefits of quick test pro (qtp 8.0)?