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 |
In our application (Web based application)we will get a pdf file and we have check a particular text in that pdf. Can any one tell how to check text in a pdf file. In the same pdf file it generating some links and I have to click that links. QTP unable recognizing that links, even id did record and playback qtp does not generating any script. Can any one help me….?
My company has recently started using Ajax for building UI and QTP is nor recognizing the drop down list for selection.It recognises it as a general Web Element or Web Table. I have added individual selections from the drop down as web Table. It works as long as the page is not refreshed. I need some help and inputs as to how to make QTP recognise a drop down list for selection. Any help will be appreciated.
I register user defined function in one test, I tried to call that function into other test. But that function not works in other test please give the direction for that.
What are advantages of test automation?
I am in need of some set of QTP FAQ @ interview. Also recently in one of interview portal they asked me how you write the script for Login application which it is web -based and using Descriptive Programming? Without associating the shared object repository?Please i do need this answer very soon? Please respond me soon @ vaisu72@yahoo.com
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, as i'm not in a possition to afford any 'Fee' to join in any institutions. Hence, if possible, kinldy mail PDF file to my mail-ID: chakri_avala@yahoo.co.in Regards, Chakradhar Yadav.
95 Answers Cap Gemini, Citrix, CTS, IBM, Logistics, QA InfoTech,
How can I change object description or check point values in qtp?
how to identify a webtable coulmn values ,if we spy the coulmn value it is sometimes identifying as Webedit and some times it is identifying as "webelement", Could any body let me know how to handle the issue?
If there r 1000 test scripts that were written. If a change to any functionality is to be made then how can we know in which script is this functionality existing.
In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain
what is qtp automation framework, what is the purpose of the framework and which folders included in this framework pls tell me with brief description
What is the entry criteria and exit criteria for your test automation