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
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
Is QTP supports Unix. If yes, then how the test automation is done?
Which functionalities of QTP used in banking project?
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
What are the key elements available in test result window?
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
how to download mercury qtp9.2 ny internet ?
Explain how you can find length of array in qtp?
Generic function to search for the unique link in webtable and click on it
Explain quicktest professional testing process?
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
What is the meaning Work bench?
How is UFT 11.5 version different from UFT 12.0?
What is the difference between per-action and shared?