What is Descriptive Programming? Where we can use this Descriptive PRogramming in real time ?

Showing Answers 1 - 4 of 4 Answers

We use Descriptive Programming when we are not using or objects not recognized by Object Repository. In Descriptive Programming objects are normally represented by WIN objects.

  Was this answer useful?  Yes

I will Contradict the second part, Descriptive Programming is used when the Objects are Dynamic in Nature NOT WinObject, i.e you are not sure about the Number of Objects, or the Static Prpperties that are kept in Object Repository.

They can be captured in Object Repository but are not evaluated at RunTime.

  Was this answer useful?  Yes

ManjuPillae

  • Mar 26th, 2008
 

It is the other way to identify the object in the application without adding the object to Object Repository, We can identify the object by help of mandatory properties and also associative properties if necessary.

We can use this in the scenario to write script of the an application, but the application will not be given for the testing team.

We also use in other cases where the number of objects that is to be identified in the script will be random ie., may be object count will be 1 or 1000 in a page, and we need to extract or perform some operation on that object, than it is not possible to record all objects, instead we go for Descriptive Programming.

In realtime say a page displays customer details in a table. If we add a new custiomer detail a new row will be added and if we delete a corresponding row will be deleted. So it will be dynamic in nature and this can be handled using Descriptive programming.

  Was this answer useful?  Yes

ssk_pln

  • Apr 14th, 2008
 

Descriptive Programming shortly called as DP by QTP users is used in many places:
1.When you have a huge Object Repository(OR),then it is generally advisable to use DP because if the number of objects in Object Repository goes-on increasing it is difficult to maintain.Sometimes,there are restrictions in the size of OR also for which DP is an alternate solution.


2.If an application is under development,but still if we want to create the QTP scripts before the appication is available for testing,then DP can be used to create the scripts,provided the object properties are available to the tester.

3.In many cases for web-application,DP is inevitable.Example,counting the child objects in a web-page.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions