tags:

views:

701

answers:

5

what is descriptive programming in QTP

+2  A: 

descriptive programming is writing qtp scpriting without any object repository

Anil
+3  A: 

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.

Motti
Let's add that it descriptive programming is useful whenever you want to address an object whose identification attributes' values vary, and which cannot be described efficiently using a regular expression. And: Since QTP began to support parametrized identification properties (i.e. the attribute value is not a literal, but a parameter placeholder replaced by the parameter's value at run-time) (in 9? or 10?), you do not have to depend on descriptive programming as often as earlier when this feature didn' exist.
TheBlastOne
A: 

Writing descriptive level programming for the qtp

Anil
A: 

Descriptive Programming is a way to add objects in the QTP scripting itself instead of adding objects in Object Repository. Below are some useful Descriptive Programming tutorial links:

You can find the complete tutorials here - http://www.onestopsoftwaretesting.com/qtp-descriptive-programming

TestingConcepts
+1  A: 

Descriptive programming is used when you want to perform an operation on an object that is not present in the object repository.

Setting the value of a Text Box

Browser(“Browser”).Page(“Page”).WebEdit(“Name:=textbox_name”,”html tag:=INPUT”).set “My New value”


Read More
Check out this extensive article about the topic
http://mercuryquicktestprofessional.blogspot.com/2006/11/descriptive-programming-simplified.html

Jonas Söderström