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
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
How to handle dynamic objects in quicktest professional?
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
How to use Environment parameterization? Explain with an example.
what you mean by artifact,milestone...
What is the syntax to call one action in another?
How QTP support all types of applications (platforms)?
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
How you know that a test case is a regression test case
With what extension you can save the list of tests in a file to run in test batch runner?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
What is the diff between image and bitmap check point?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.