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...


Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same?
ok but why descriptive?(only for w/o application)

Answers were Sorted based on User's Feedback



Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also ..

Answer / saritha

Below are some situations when Descriptive Programming can be considered useful.

1] The objects in the application is dynamic in nature and need special handling to identify the object.

2] When object repository is getting huge due to the no. of objects being added.If the size of object repository increases too much then it decreases the performance of QTP while recognizing a object.

3] When you don't want to use object repository at all.Well the first question be why not object repository?consider the following scenario which would help understand why not object repository

scenario 1] suppose we have a web application that has not been developed yet.Now QTP for recording the script and adding the objects to repository needs the application to be up,that would mean waiting for the application to be deployed before we can start of making QTP scripts.But if we know the descriptions of the object that will be created then we can still start off with the script writing for testing.

scenario 2] suppose an application is 3 navigation buttons on each and every page.Let the buttons be "Cancel","Next" and "Back".Now recording action on these buttons would add 3 objects per page in the repository.For a 10 page flow this would mean 30 objects which could have been represented just by using 3 objects.So instead of adding these 30 objects to the repository we can just write 3 descriptions for the object and use it on any page.



4] Modification to a test case is needed but the object repository for the same only is Read only or in shared mode i.e ,changes may affect other scripts as well.



5]When you want to take action on similar type of object i.e, suppose we have 20 textboxes on the page and ther names are in the form txt_1,txt_2,txt_3 and so on.Now adding all 20the object repository would not be a good programming approach.There are two ways in which descriptive programming can be used.

I] By creating properties collection object for the description.

i i] By giving description in the form of string arguments.

Is This Answer Correct ?    5 Yes 0 No

Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also ..

Answer / ganesh

thank u...thanku.... very much saritha...
your 2nd point is excellent.....

pls tell me one more thing now a days which is imp...
and which is using most companies? Or or DP?

many thanks in advance

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More QTP Interview Questions

How QTP recognize the object??how to add objcts into object repository??

3 Answers  


four browser are open same application i want to enter 3browser how?

3 Answers   IBM,


How to connect to data base?

2 Answers  


now a days which one is using all companies for qtpscript a)Object Repository based script b)Descriptive program based script c)BOTH

1 Answers  


we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?

0 Answers  


What are different versions in Win Runner ,QTP ,Load Runner and Test Director till now and atleast please let me know new features for each version. Ex QTP8.2,QTP 8.5.QTP9.2 supports Mozilla 2.0

1 Answers   DELL,


In project module it contains 3-ok buttons with same properties who qtp identify its objects while runing ??

5 Answers   HCL,


how do u plan test automation?

0 Answers  


How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric

0 Answers  


actually how many hours per one day we will work on automation (qtp) in real time

1 Answers   Synechron,


What are the advantages of parameterization ?

0 Answers  


What are the types of properties that quick test learns while recording?

0 Answers  


Categories