What is deference between normal QTP testing and
descriptive programming?

Answers were Sorted based on User's Feedback



What is deference between normal QTP testing and descriptive programming?..

Answer / nanda

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

What is deference between normal QTP testing and descriptive programming?..

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

What is deference between normal QTP testing and descriptive programming?..

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

What is deference between normal QTP testing and descriptive programming?..

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

Post New Answer

More QTP Interview Questions

Can we run multiple QTP scripts one after the other without manual intervention? How?

0 Answers  


I have a library function , with that function 100 scripts are being called. The library function is changed(something is added) . how do i update all the scripts.

1 Answers   IBM,


What is the difference between Action and Function.? when both has the same functionaltiy, when do we choose Action and when do we choose Function..??

3 Answers   DST Global Solutions,


can u store QTp frame work folders in VSS? If Not where u store those?

1 Answers  


What are the things(properties, and other details) will be recorded while recording an object using normal recording?

0 Answers  






If there are 10 notepads opened on desktop. how can we close a particular 2nd notepad using script

3 Answers  


What are the framework folders?

1 Answers  


please send detail navigation for merging of object ripositories in QTP 8.2

3 Answers   Infosys, Ordain Solutions,


Diff. between keyword driven Data driven testing?

8 Answers   CTS, IBM,


Hi, I am new to QTP testing and was exploring the frameworks used for automation. I wanted help in writing various scripts and files for keyword driven automation like 1. Control File 2. Test Case File 3. Startup Script 4. Driver Script 5. Utility Script . etc It would be great if someone can give help in this context ... Thanks

0 Answers  


Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini

2 Answers   TCS,


what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent

0 Answers  


Categories