For QTP Related Documents visit: www.gcreddy.comWhat is Descriptive Programming?
Providing Objects information directly into the Test Script, instead of storing objectsinformation in the Object Repository.Descriptive Programming is a method of performing operation on the object which is notthere in Object Repository. We can also use programmatic descriptions to perform thesame operation on several objects with certain identical properties, or to perform anoperation on an object whose properties match a description that we determinedynamically during the run session.Tests using Descriptive programming are faster than Tests using Object Repository
Benefits of Descriptive Programming
If the AUT (Application Under Test) is having Dynamic Objects, then it is better to usedescriptive programming. Incase of object repository, it is Difficult to handle dynamicObjects.When we have more objects to perform operations, in performance point of viewdescriptive programming is better than object repository method. If we use objectrepository for generating huge tests, then QTP performance will be decreased.Descriptive Programming is useful if the AUT is having objects that are adding in the RunTime. We can’t add Objects to Object Repository in run time.If we need to start Test Automation process before the AUT is readyDescriptive Programming is useful, if the AUT is having similar type of objects or similarname objects. Incase of Object Repository, It will create multiple objects with samedescription unnecessarily.Shared Object Repository is not changeable by multiple persons at a time.Maintenance becomes harder if all the team members have created their own objectrepositories. In this situation Descriptive Programming is very flexible.Tests using Descriptive Programming can be executed in any version of QTP without anychanges.Code Portability: Just code is enough to run Tests. We can copy and paste in other scriptsfor any other required requirement.Reusing of Properties: We can assign properties to a global variable and reuse it for sametype of objects.Plug & Play: Any time Tests will be in ready to run state. No need to worry about anyother settings or files.Just Maintenance of variables: We can store the object properties in the form of variablesin a txt / vbs file which will be placed in central location. In this case we just need tomaintain that file.
For Manual Testing documents visit: www.gcreddy.net