What is descriptive programming?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mercy
Please refer the following link to get your answer:
http://www.knowledgeinbox.com/files/DP_in_QTP.doc
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / vinay
Descriptive Programming:
Whenever QTP records any action on any object of an
application, it adds some description on how to recognize
that object to a repository of objects called object
repository. QTP cannot take action on an object until
unless its object description is in the Object Repository.
But descriptive programming provides a way to perform
action on objects which are not in Object repository
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the present version of the VB Script we are using
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
what is meant by source control?
from what stage you will start automation in your project
What are the file extensions for per-action, shared object repository files and what is the extension for library files?
i don't have any experience in qtp? Can u please tell me What work i have to do?
Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance..
The interviewer asked me when u recorded one application.object repository properties are saved with .tsr extention. in qtp expert view wherever mouse is there that snapshot displayed in active screen but some recored script lines are not displyed in actives screen y?
How to get all the objects count and objects names in webpage using QTP ?
What is the difference between Call to Action and Copy Action.?
Explain different recording modes?
Plz explain about Virtual object? What is the situation u r using , explain with example?