descriptive programing is nothing but doing the qtp scripting to identify the testobjects with out the need of object repository( which helps with all the properties of the objects and their values to identify them), we alone assign values to the properties of test objects by creating descriptions for them.... This is done in two ways
We use descriptive programming in such a case when Object Respository is unable to find the object from our application then we will click on the object with the help of Object spy then we will write the script. This scripting is called as 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
for Flight Reservation
we start with Test object("Property:= value").method
Dialog("Text:=Login").winedit("Attached text:= Agent Name:").set "nazeer"
Dialog("Text:=Login").winedit("Attached text:= Pas.*").set "mercury"