You can use Descriptive programming in two ways
1) Static
2) Dynamic
In Static Method , for object identification you specify an objects property in the following format
property:=values,
This format is called property value pair and is enclosed in inverted commas>
If your object uses multiple descriptions for identification, you can specify those using commas>
So in our case the description for Agent Name becomes
"nativeclass:=Edit", "attached text:=Agent Name:"
The second method of doing the same action is using Dynamic Descriptive programming
In case your script uses the descriptive programming object candidate multiple times, it will be very tiresome to specify all the property value pairs for each statement
In such cases you can make use of Description Class provided by QTP Syntax for creating an description object is
Set MyDescription = Description.Create(); MyDescription("property").Value = "property-value";
This is the Dynamic Method