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 are the disadvantages of recording test cases in qtp?
How do Parameterization and Data-Driving relate to each other in QTP?
How many types of recording facility are available in quicktest professional?
Define Environment Variable in UFT and its uses?
What is system testing and what are the different types of tests you perform in system testing?
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
How to check bitmap output value?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
Explain process of smart Identification in QTP?
How QTP identify the system time that's changes every seconds?
What is text/text area checkpoint?
How will you handle java tree in qtp?
What are the methods used in UFT to handle exceptions or run-time errors?
how to know no.of mails in our g mail by using vb-script
write a script to verify the image path(src property) of the images which are in web pages.