What is descriptive programming (Programmatic Description) in QTP

hp-uft, qtp

Solution

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.

Problem

What is descriptive programming in QTP?

Original source