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
how to post xml data from QTP scripts to any application?
Explain how qtp identifies object?
what is run action?
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
How to open a new test using quicktest professional?
What is the quicktest professional testing process?
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
Where we can use the synchronization?
How to add synchronisation points in qtp?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
how to acess a test in RSA?
How to creating an output value using quicktest professional?
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)
banking domain description for software tester for interview
How to modify object property in qtp ?