What is descriptive programming (Programmatic Description) in QTP

lina picture lina · Mar 19, 2010 · Viewed 26.5k times · Source

What is descriptive programming in QTP?

Answer

Motti picture Motti · Mar 19, 2010

Creating a test without using the object repository is known as descriptive programming since you describe the objects as part of the script.

e.g.

Browser("title:=Google").Page("title:=Google").Link("text:=Advanced Search").Click

Note the := in the test objects' names, this is not a smiley it means that the property title has value Google (as a regular expression).

You can also use the Description object via Description.Create.

You can see more details here.