What is deference between normal QTP testing and
descriptive programming?

Answer Posted / sabareesh

Descriptive Programing is nothing but We define the
Description about an object and create an object and we
perform the action over the object.

the basic syntax of the Descriptive Programming is

‘—-Create Object—-’
Dim oDesc
Set oDesc = Description.Create
‘—-Set ID properties & values—’
oDesc("property1″).Value = "value1″
oDesc("property2″).Value = "value2″
‘—-Use and reuse the description object—’
VBWindow(oDesc).Type "Something"
VBWindow(oDesc).Close
‘—-Release description object—’
Set oDesc = Nothing

One More syntax is for an object Button
Set Obj = Brower("title:=Y").Page("html tag:=x").Button
("Name:=h")
if obj.exist
obj.Click
else
endif


Here the Advantage is that :
we skip the OR cocept so we save more space
Remove machine dependency
Increase clarity of the script

In any case we can go to the Descriptive Programming
provided we know the object Properties with\without
Application.

Mainly people will go for Desc Prog only if it is a Product
where the Reusability of the script is high with minimal
change in the script

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to post xml data from QTP scripts to any application?

1501


Explain how qtp identifies object?

609


what is run action?

1435


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

1960


How to open a new test using quicktest professional?

570






What is the quicktest professional testing process?

527


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1323


Where we can use the synchronization?

569


How to add synchronisation points in qtp?

577


What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?

579


how to acess a test in RSA?

1668


How to creating an output value using quicktest professional?

541


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1622


banking domain description for software tester for interview

3468


How to modify object property in qtp ?

559