What is deference between normal QTP testing and
descriptive programming?
Answers were Sorted based on User's Feedback
i think ur question might be difference between actual
programing and descriptive programming in QTP? if it is ur
question...
when u r writing script in QTP u should store all the
objects in Object Repository.
for example:
Browser("XXX").Page("XXX").WebEdit("XXX").Set "XXX"
here the browser, page, WebEdit objects should be stored
in Object repository. then only it works, else it wil throw
an error.
when u store objects in OR, some of the properties of
that object will store in OR to identify that object.
but in descriptive programming no need to store objects in
OR. it means writing and executing ur scripts with out using OR.
for example:
Browser("Name:=XXX").Page("Title:=XXX").WebEdit("name:=XXX").Set
"sss"
here the properties of objects are throwed in to script. so
no need to store those object OR.
still not getting? mail to : nanda.dreddy@gmail.com
Regards..
Nanda
Is This Answer Correct ? | 14 Yes | 0 No |
Answer / 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 |
Answer / babu
Hi,
Can anybody explain little bit more about descriptive
programming. I mean, how and when we have to use
Descriptive programming. In What are all the situations we
have to choose descriptive programming.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / arunamadhu
most of the time in run time qtp fails to identify the
object in the object repository ,to handel such objects
which change more offenly ie dynamic we wil go for
Descriptive programming,
when u run the recorded scripts on different browser
Recorded scripts are going to fail,to handel this also v
vil go for descriptive programming
Is This Answer Correct ? | 0 Yes | 0 No |
How to call the userdefined functions to script? If i am stored 'add()' function in Library functions folder. i want to cal that function in my script.
what is active screen,keyboard view?
How can you connect the database with QTP?
Can you write User defined function for WebEdit ? Note1: This function can be used for all web edits in all pages Note2: Don't use Child objects method
How iteration is related to Test Results in QTP?
what is the abbrivation of .mtr in action reposirtory?
CAN SOME ONE TELL ME ABOUT QTP FRAMEWORK? I AM SUPPOSED TO GIVE THE QTP FRAMEWORK THIS WEEK SO PLEASE HELP
1.what is the difference between childobjects and child items in qtp? 2.what is difference between a class and function? 3.can u convert ustimings to indian timings using vbscript? 4.i have scripts in one machine.can i run those scripts in another machine.how?
2 Answers Genpact, Infosys, Symantic Space, TCS,
How i can use and create Library functions in QTP and what is the proces .
How to run a script from lines 50 - 100 alone (if the script has 1- 200 lines of code)?
Will QTP Support Japanese Language?
3 Answers Cap Gemini, Infosys,
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay