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

Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

620


What is the quicktest professional testing process?

530


What is quicktest professional?

559


What is the use of text output value in quicktest professional (qtp)?

600


What is regular expression?

579






What is the use of Debug Viewer?

1486


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1521


Which scripting language used by quicktest professional (qtp)?

662


What is the Difference between test object and run time object?

611


in a web page hoe to check the dynamic links that rechabging with out using regular expressions

1781


what is the diff b/w assistive and mandatary rules of object repository in QTP???

1614


Why script error occur in between recording in qtp?

1766


you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva

1495


Explain in brief about the qtp automation object model (aom).

565


I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

1713