What is descriptive programming?

Answer Posted / gopal

Without giving the object information into the object
repository
we can directly execute the test scripts by using DP.By
considering
following condition we will come to know how useful DP is.

1. When objects are dynamic in nature, they require special
handling
to identify the object, to handle this type of objects we
use
descriptive programming.The best example would be to click
on the
link which changes according to the user of the
application.
2. When Object Repository is getting huge in size, due to
adding No.of
objects into it, the performance of QTP will be decreased.
3. When you dont want to use the object repository at all,
then the
first question will be why not object repository.
considering some
scenarios we can understand the importance of DP.

Scenario 1. When we are having an application, which is not
yet been
developed, or in the state of run, QTP requires the
application to be
up to record the object properties to identify an object.
waiting for
the application to be up will be the waste of time, and if
we know the
flow of the application, then we can start writing DP.

Scenario 2. If we having an application, with 3 text
buttons each in
a page, adding all this 3 objects into the object
repository, in the
flow of 10 pages, a total 30 objects will be added into the
repository,
which is not a good practice, by writing 3 descriptions for
the objects
we can add them to the repository.

4. Modification for test script is required, but the
repository for the
same will be in the state of "readonly" or in "shared
mode", so modification
will impact other scripts as well.
5. When we are performing similar type of action on
objects,i.e, when
we are having an application with 20 text buttons, adding
all this
objects will not be a good practice.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object

2520


What are the technics follow in writing VB script?

1521


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

1596


Can we use index on view?

1593


Explain the check points in quicktest professional (qtp)?

550






what is supply chain management?

2079


What are main panes available in qtp test browser?

528


i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

1522


How to handle the exceptions using recovery secnario manager in quicktest professional?

620


You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?

1323


Can I change properties of a test object?

609


What do you mean by iteration?

622


Which scripting language used by quicktest professional?

523


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

570


How is UFT 11.5 version different from UFT 12.0?

600