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

Explain how qtp identifies object?

0 Answers  


Explain different types of action in qtp?

0 Answers  


how to display message with out using msgbox function?

5 Answers   AppLabs,


what are the functions availabla in QTP? what are the data types in QTP?

2 Answers   Spry Technologies,


Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya

3 Answers  






wht type of User defined functions or Java Releated functions Do we write in VB scripting

0 Answers  


How are actions and functions different in QTP?

0 Answers  


How to map the test cases to requirements in QC?

4 Answers   IBM,


What is test object model in QTP ?

8 Answers  


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

0 Answers  


How software automation specialist enter steps in the Expert View?

0 Answers  


What is the expert view?

0 Answers  


Categories