Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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&#8243;).Value = "value1&#8243;
oDesc("property2&#8243;).Value = "value2&#8243;
‘—-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

Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that?

4 Answers   Livetek,


hi i need to learn qtp its very urgent..pls tell me who is the best faculty for qtp in hyd..... and i plan to go foe mindq nageshwar rao? its good or not?

2 Answers  


what are the areas that cannot be tested using an automated tool? list a few

7 Answers  


write a qtp code to count the number of child objects in login page and highlight it

2 Answers  


Discuss quicktest professional environment?

0 Answers  


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

0 Answers  


How many ways to configure the application in QTP,Explain

2 Answers   CTS,


what kind of erros can be handled with the using QTP?

2 Answers   CTS, Satyam,


What is the vb script when the url enter into the browser

2 Answers   Satyam,


I want to run my qtp scipt on the system where qtp is not installed .I don't want to install qtp but i want that system should use the qtp from another system in lan just the qtp instance should be launched on that system without having qtp installed on it .I probably know the solution that it will be solved through RMI but how to get this problem solved plz help i anyone know the answer

4 Answers   Cimcon,


how can i add an action(external action) programmatically?

3 Answers   Ordain Solutions,


How to connect to the Database from QTP?

10 Answers   DB, Thatavarti Technologies, Xchanging,


Categories