GeekInterview.com
Series: Subject: Topic:
Question: 1517 of 1523

Explain the concept of object repository & how QTP recognises objects?

Asked by: Interview Candidate | Asked on: Sep 6th, 2005
Showing Answers 1 - 51 of 51 Answers
Venkat Potluri

Answered On : Jul 28th, 2005

Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected). we can view or modify the test object description of any test object in the repository or to add new objects to the repository. Quicktest learns the default property values and determines in which test object class it fits.If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description.If no assistive properties are available, then it adds a special Ordianl identifier such as objects location onthe page or in the source code.

Yes  3 Users have rated as useful.
  
Login to rate this answer.
Rahul Rathan

Answered On : Jul 29th, 2005

Good Answer Venkat

  
Login to rate this answer.
Rekha reddy

Answered On : Aug 15th, 2005

It z very detailed answer and helps alot.

  
Login to rate this answer.
Kalpana Naidu

Answered On : Aug 17th, 2005

When you create test,all the information about the objects in your test is stored in object repository. There are two types of object Repositories   1. Shared object repository  2. Per action repository

Yes  1 User has rated as useful.
  
Login to rate this answer.
divya

Answered On : Aug 25th, 2005

Good answer venkat but you didn't explained about the two types. 

  
Login to rate this answer.
Suresh Chatakondu

Answered On : Aug 31st, 2005

Two Types of Object Repositories Per action - Goes with per action.  Shared Object Repository(OR). Now if you are working in any company with more than one QTP Tester you need to share the same OR.  OR's can be merged once the work is done with OR Merge Tool.   Another Important Thing - If you get error which states Object is not recognized. Go for Descripting Programming than adding objects, which solves the problem.

  
Login to rate this answer.
sridevi vaitla

Answered On : Sep 6th, 2005

I am working in one MNC and on QTP Tool and I am not aware of the OR merge Tool which is mensioned in the 2 nd question. In our company we r using QTP 8.0 version and i am not aware of this Merging can u explain detailly.I

  
Login to rate this answer.
Rekha Basu

Answered On : Sep 20th, 2005

With QTP 8.2 ,there available QTP Plus,setup.It provides Repositories Merge Utility.The Object Repository Merge Utility enables user to merge Object repository files into a single Object repository file.

  
Login to rate this answer.
anilkumarm

Answered On : Nov 29th, 2005

View all answers by anilkumarm

Object repository is a place where the identified objects are stored in QTP.in other words QTP communicates with the application by means of OR.Qtp identifies object by using mandatory and assistive properties.

  
Login to rate this answer.
vasu

Answered On : Jan 24th, 2006

what is size of object repository?

  
Login to rate this answer.
anilbabu_1978

Answered On : Mar 1st, 2006

View all answers by anilbabu_1978

 Hi Vasu,In Tools menu - Select Object Repository - In that we need to click Export button. It asks to save Object Repository in the desired location. Now,the located Object Repository saves with .tsr extension.The size of  Object Repository is 20.0KB.Hoping that this would be useful...

  
Login to rate this answer.
shreyashi

Answered On : Mar 31st, 2006

whenever we record some action on qtp it learns all the standard properties of the object.(physical properties)& assign one of unic property which is called as logical name of the object & maintains in object repository.its of 2 type shared & per action(default).its extension is .tsrqtp recognizes the object with the help of logical name of the object stored in object repository. 

  
Login to rate this answer.
vijay

Answered On : Jun 7th, 2006

We can add two OR's by using AORE, Advanced Object Repository Editor/emmulatorThis is a free down load.it is a very simple third party tool.

  
Login to rate this answer.
vijay

Answered On : Jun 7th, 2006

The size of OR is 2 MB . But we can increase or Merge OR by using AORE (Advanced Object Repository Editor)

  
Login to rate this answer.
Rishi Raj

Answered On : Jun 17th, 2006

Great answer

  
Login to rate this answer.
Rammy

Answered On : Jun 17th, 2006

Everyone seems like knows QTP really good. I am thinking about learning it, Can anyone tell me how to do about it? What should I do? So far on my 2 jobs we never used third party automation tools, but now I want to move to city and get paid more so I have to learn at least one tool.thanks in advance.Rammy

  
Login to rate this answer.
kiran

Answered On : Jul 12th, 2006

In QTP folder there is a QtpPlus setup.Install it as it consists of merger utility tool and some other toolsThanks and Regards,Kiran

  
Login to rate this answer.
Seema G

Answered On : Aug 30th, 2006

Hi,  I am working on QTP since three months. Facing one problem, can anybody explain in detail?   I have recorded and updated script for one web application. which i wanto to exicute for another similar application without recording it again and again.   I tried it also , but it shows run error in Result sheet, and shows 'src' thats source file in red color as an error. i undesrtand the cause of error.   Whci propery of object should i remove or add so that all run errors will go.please explain in detail. Thanks.

  
Login to rate this answer.
Pranay Dalal

Answered On : Sep 7th, 2006

For any automation tool that follows OO concept the object repository forms the basis of automation frame-work. Let me talk over here about some best practices. It is indeed important to make a choice between Shared & script specific (Action specific) object repository. For a web based application, it is not possible to have a shared object repository as too many objects in one .mdb file could lead to commotion especially when we have a team of automation testers. Thus, automation testers should be assigned partition specific responsibility in maintaining the object repository and updating it as when required. Further, QTP 9.0 has a wonderful drag & drop feature in creating object respoitory. Thus both shared as well as action specific can be maintained. Now comes the golden question - Is it possible to create OR without using RECORD feature of QTP. Well, the answer is YES. Descriptive Programming is the best way of doing it. But for doing so the business documents should have UI mock-ups that have been reviewed and sign-off by the business experts. These mock-ups would then give the tester an idea about the various objects and their respective classes. The automation tester should than create his own repository using the describe method. But this is again time-consuming. Try avoiding descriptive programming to create OR. However, DP is the only the best option when the DEV team are developing the APP using customized objects; as a result of which QTP cannot recognize these objects. HTCs are the best example of customization. The best work-around is treating these customized objects as combination of objects and creating scripts accordingly. This is too much of trial & error method.Once the OR is ready, then it should be maintained using QC or TD. However, during script execution the run-time is affected, but at the cost of having well-maintained OR.

  
Login to rate this answer.
suresh

Answered On : Nov 1st, 2006

HiHow many types of objects in QTP? Can u explain clearly and how to invoke application in QTP?

  
Login to rate this answer.
pinki

Answered On : Nov 7th, 2006

how object repository made in QTP ?how local repository made in QTP,...pls. explain it step by step?what is a purpose of shared repository in QTP and how it is different then Winrunner?

  
Login to rate this answer.
sai krishna

Answered On : Nov 9th, 2006

Hi,Can any one help me in creating a shared repository, and can explain the how i can i use this in other scripts..???can u provide me steps (if poss..)Thanks all,

  
Login to rate this answer.
Debashish

Answered On : Nov 10th, 2006

1 MB

  
Login to rate this answer.
Santosh16

Answered On : Dec 11th, 2006

View all answers by Santosh16

  
Login to rate this answer.
Sai Srinivas

Answered On : Jan 3rd, 2007

Hi,AORE is a OR Merging tool which stands for Advanced Object Repository Editor. You Can Merge the objects with in the object repository from one browser to another and also you can merge the objects from one object repository to another. We don't have this facility in QTP. So we are using this tool to customise the object repository. It's a freeware and if you start using this ...you ll come to know more about this.Thanks,Sai

  
Login to rate this answer.
nazeer

Answered On : Jan 21st, 2007

hi  thank u .it very good .one more question how u perform batch testing in QTP 8.2?

  
Login to rate this answer.
chaitanya

Answered On : Feb 1st, 2007

I am chaitanya working in small company as a testing engineer . i have small doubts on qtp tool . 1.recovery scenarios.2.modes of OR/Extensions

  
Login to rate this answer.
Aan

Answered On : Feb 1st, 2007

I really liked your answer Venkat. I have started learning QTP. I am sure this interactive session will help me to have better understanding of the concept.Thank you.Aan

  
Login to rate this answer.
sriram pavan kumar

Answered On : Feb 5th, 2007

Object repository is concept that plays a heart role in the Qtp . in this we will record the objects and placed in the Object repository. now when ever we write scripting in qtp then the object repository makes the objects to come into the picture . here it is identified by its properties like Class, tittle,etc . we are having two object repositories like Shared and peraction . according to the application we will be using one of them .

  
Login to rate this answer.
J Lokanadham

Answered On : Mar 2nd, 2007

  we can merge two object repositories using objectrepository merge utility tool. This will be available in Quicktestplus..  Quicktestplus you have to install ---> It will be available in your's QTP only..just do it...

  
Login to rate this answer.
bhaskarreddy

Answered On : Mar 2nd, 2007

To recognise a perticular object QTP takes imp properties and its values

  
Login to rate this answer.
meetsubhas

Answered On : Apr 8th, 2007

View all answers by meetsubhas

Hello friendz this is subhasis,There are two types of object repository1.per action 2.shared 1.per action is created and maintained by QTP.if one action is in it then it is not reused if once QTP is closed.2.shared repository is created and maintained by a test engg.,if one action is in it then it is reused .bcoz it is having export option to save this acton in the hard disk. the extention of this is .tsr.  In QTP one object is recognised by object identification.At the time of execution it takes the help of ordinary identification and it takes all it's mandatory properties and try to find the object if it fails then it takes the assistive properties one by one.If if fails to identify the object then it takes the help of smart identification and first it takes it's base filter properties and find the object if it fails then it takes the help of optional filte properties and try to find the object.If it fails then it come back to the ordinary indentification and try to find the object if it finds the object then it'll do it roughly if it fails to identify the object then QTP will do hands up.

  
Login to rate this answer.
siphan

Answered On : May 10th, 2007

This is easy question.Follow the navigation.1 start-program-quicktest proffesional-tools-test batch runner.This is used to perform test more than one application at a time.Best regards

  
Login to rate this answer.
sarada

Answered On : May 24th, 2007

Hi Rekha,When you create test, all the information about the objects in your test is stored in object repository. There are two types of object Repositories 1. Shared object repository 2. Per action repository

  
Login to rate this answer.
tseshasayi

Answered On : Jul 18th, 2007

View all answers by tseshasayi

It is a common repository to stores the captures object properties with thier logical name and physical properties.With help of object spy and object identification it is identifying the object properties.

  
Login to rate this answer.
vinay.pesaru

Answered On : Jul 23rd, 2007

Object Repository is a storage place where we can store the objects information and it is also act as an interface between the test script and AUT (Application under Test) in order to identify objects during execution There are 2 types of Object Repository1) Per-action: For each and every action separate Object repository is created and is managed by QTP2) Shared Repositary: Object repositary can be associated to mulitple test, it can be managed manually, advantage of Shared repository is easy to maintain.

  
Login to rate this answer.
nancy ramos

Answered On : Sep 25th, 2007

When changing the object details, the execution will then return a 'cannot find object' type of error. I need to change the text description of an object, because it changed with each run. I tried entering a wild card *.* in the text value but it continues to say it cannot located. Can you please assist

  
Login to rate this answer.
kusma

Answered On : Oct 6th, 2007

In QTP 8.2 the max size of OR is 2MB.

  
Login to rate this answer.

Hi can u explain the difference between base filter properties and optional filter propertieswith an example.bye

  
Login to rate this answer.
laxmichoudhari

Answered On : Dec 12th, 2007

View all answers by laxmichoudhari

Concept of Object Repository:The object model is a large set of object types or classes that Quick Test uses to represent the objects in your application. Each test object class has a list of properties that can uniquely identify objects of that class and a set of relevant methods that Quick Test can record for it. A test object is an object that Quick Test creates in the test or component to represent the actual object in your application. Quick Test stores information about the object that will help it identify and check the object during the run session. How the QTP recognises object  ·          When we run the Test, QTP identifies each Object in the application by its Test object class and description (the set of test object properties and values used to uniquely identify the object). ·          §The list of Test Objects and their descriptions are stored in the Object repository. ·          §QTP would then search the Object repository to get the required properties of the Test object. ·          §QuickTest searches for a run-time object that exactly matches the description of the test object. ·          §It expects to find a perfect match for both the mandatory and any assistive properties it used to create a unique description while recording ·          §If QTP finds the Object in the application that matches the description, it performs the required method on the object in the application  §

  
Login to rate this answer.

 1) Object repository dialog box displays a test tree of all objects in the current action or the entire application. Using Object repository we can   a) Identify the Object   b) View the Object Properties

  
Login to rate this answer.
manishgi

Answered On : May 22nd, 2008

View all answers by manishgi

Object repository define object def. in object repository. In left pane we can see object repository objects and we can see all, local object and any specific repository objects. We can alter, delete or add object properties or item.We can define recognisation in some steps:In case of smart identification (SI) true QTP search object through these steps:1. QTP search object in manadotory field in case of any decrepencies (no object found or more then 1 object found with same properties QTP goto 2nd step else skip rest)2. QTP search object in assaciative properties (still, if there any descripencies then QTP go to step 3 else skip rest)3. Use oridinal identifier( if there still any descripency then QTP throw run time error else recongnize object)BUt in case of SI false QTP skip 2nd step means it go thrue 1 and 3 step

  
Login to rate this answer.
manojkiran

Answered On : Jun 6th, 2008

View all answers by manojkiran

Object identification:-                                1.mandatory properties                                2.assistive properties                                3.ordinal identifier                       if smart identification is enabled                                4.base filter properties                                5.optinal filter properties                            while execution qtp tries to identify the object with the help of all mandatory properties at once and checks whether those  are sufficient to identify the object uniquely,otherwise it takes the first assistive property along with all mandatory properties n verifies.if sufficient it stops otherwise it takes 2 nd assistive propperty n the process continues till the end of the assistive properties.         if smart identification is enabled directly qtp enters into that n takes all the base filter properties at once n tries to identify,if not sufficient it takes the help of optional properties one by one till qtp identifies the object         if still it is not identifying the object uniquely then it takes the help of ordinal identifier if available.        to avoid the above process we use descriptive progaramming       

  
Login to rate this answer.
vidput

Answered On : Jun 22nd, 2008

View all answers by vidput

Object repository is place where the properties of the objectis of the application under test are stored for futher verification and modification. you can also view the properties of the object even if they are not in object repository dialog box. It stores a list of test object and test method .test object is a object created by qtp for the actual abject under test and test method is the actual action performed on that object while recording.object repository identifies the object with the help of test object .

  
Login to rate this answer.
pinkys

Answered On : Nov 18th, 2008

View all answers by pinkys

Whenever an action is performed on any application in QTP, details about its every object while recording is stored in object repository. Object repository contains logical name and physical description of every object. QTP recognises every object by its physical propertites.

  
Login to rate this answer.
SanthanCh

Answered On : Nov 22nd, 2008

View all answers by SanthanCh

QTP can recognise the objects through object repository or object spy.Object Repository: It captures "properties and methods" of the object. It stores the object properties and methods "permanently". Object Spy: It captures "properties and methods" of the object. It stores the object properties and methods "Temporerly". When you close the object spy wizard, it removes object properties and methods.

  
Login to rate this answer.
Tru123

Answered On : Mar 31st, 2009

View all answers by Tru123

Object Repository is a place where Object's logical name store along with physical properties .and when this possible when we set the repository. There are two type of repository (1) Per action (2) Shared object repository I would say share object repository is best so in case any failure occure you can recover from one place.Since object stores in OBRepo with its logical name and property, when we run script QTP recognize the object.That's what i think if i am wrong let me know

  
Login to rate this answer.
ajayseed

Answered On : Feb 12th, 2010

View all answers by ajayseed

Everything in QTP is termed as an Object so evrything revolves aroungd Object & Object properties. Properties of an Object are basically divided into two categories like, Mandatory & Assistive.While playback or execution of the script QTP first tries to match the mandatory properties, if that are not sufficient to identify an object uniquely then it shifts to Assistive properties & if not then it tries to match with unique identifier (Ordinal Identifier) associated with Object may be Location or Index in case of Destop applications or Creation time in case of Web based applications.After trying all things if Object is still not getting identified then QTP shifts to Smart Identification & then it identifies an Object. These are activities QTP does for Object Identification.Regards,Ajay Shembekar

Yes  3 Users have rated as useful.
  
Login to rate this answer.
your.heer

Answered On : Jul 2nd, 2010

View all answers by your.heer

Object repository: In QTP, we can store the objects in the object repostiory.  There are two type of object repository :1. Local repository2. Shared (Centeral) repositoryQTP recognize the objects by matching the properties are availble in the object repository and run time.

  
Login to rate this answer.

When the user records any operation on any object, qtp will record objects logical name and physical properties which will store in object repository.Object repository in qtp is of two types.1.Shared object repository2.Per action object repository.While the user running the script, qtp will read the script and try to find the same object with the same logical names and properties in object repository. If it matches, then the script will run properly. Otherwise QTP will display some error message.

  
Login to rate this answer.
BSony

Answered On : May 25th, 2011

View all questions by BSony   View all answers by BSony

Object Repository is a place where ,all the objects will get resided,while recording ..also you can add the objects one by one in to the repository.QTP identifies the objects based on their properties.For Example:---Consider a Edit box, which is having properties height and width etc....so while running the application qtp identifies the objects based on  their unique properties.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.