When to use Descriptive programing?

Answer Posted / malar and sandy

Below are some of the situations when Descriptive
Programming can be considered useful:
1. The objects in the application are dynamic in
nature and need special handling to identify the object.
The best example would be of clicking a link which changes
according to the user of the application, Ex. “Logout
<<UserName>>”.
2. When object repository is getting huge due to the
no. of objects being added. If the size of Object
repository increases too much then it decreases the
performance of QTP while recognizing a object.
3. When you don’t want to use object repository at
all. Well the first question would be why not Object
repository? Consider the following scenario which would
help understand why not Object repository

Scenario 1: Suppose we have a web application that has not
been developed yet. Now QTP for recording the script and
adding the objects to repository needs the application to
be up, that would mean waiting for the application to be
deployed before we can start of with making QTP scripts.
But if we know the descriptions of the objects that will be
created then we can still start off with the script writing
for testing

Scenario 2: Suppose an application has 3 navigation buttons
on each and every page. Let the buttons be “Cancel”, “Back”
and “Next”. Now recording action on these buttons would add
3 objects per page in the repository. For a 10 page flow
this would mean 30 objects which could have been
represented just by using 3 objects. So instead of adding
these 30 objects to the repository we can just write 3
descriptions for the object and use it on any page.

4. Modification to a test case is needed but the
Object repository for the same is Read only or in shared
mode i.e. changes may affect other scripts as well.
5. When you want to take action on similar type of
object i.e. suppose we have 20 textboxes on the page and
there names are in the form txt_1, txt_2, txt_3 and so on.
Now adding all 20 the Object repository would not be a good
programming approach.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I change object description or check point values in qtp?

559


What is the process of synchronizing qtp and aut?

574


How many types of status are there?

591


WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,

1507


How to execute a winrunner script in quicktest professional?

558






Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1393


What is RTM (require ment tracebulity marix) fromate?

1534


What is quicktest professional window?

567


Can we run multiple QTP scripts one after the other without manual intervention? How?

600


explain structured testing? plz guys with exp. do answer

1414


What is a checkpoint? How many check points are there in qtp?

534


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

3774


Write a QTP script to enter a keyword in to Google search engine?

653


I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2

1500


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1829