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

Showing Answers 1 - 75 of 111 Answers

Venkat Potluri

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

Rahul Rathan

  • Jul 29th, 2005
 

Good Answer Venkat

  Was this answer useful?  Yes

Rekha reddy

  • Aug 15th, 2005
 

it z very detailed answer and helps alot.

  Was this answer useful?  Yes

Kalpana Naidu

  • 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

divya

  • Aug 25th, 2005
 

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

  Was this answer useful?  Yes

Suresh Chatakondu

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

  Was this answer useful?  Yes

sridevi vaitla

  • 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

  Was this answer useful?  Yes

Rekha Basu

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

  Was this answer useful?  Yes

anilkumarm

  • Nov 29th, 2005
 

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.

  Was this answer useful?  Yes

vasu

  • Jan 24th, 2006
 

what is size of object repository?

  Was this answer useful?  Yes

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

  Was this answer useful?  Yes

shreyashi

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

qtp recognizes the object with the help of logical name of the object stored in object repository. 

  Was this answer useful?  Yes

vijay

  • Jun 7th, 2006
 

We can add two OR's by using AORE, Advanced Object Repository Editor/emmulator

This is a free down load.it is a very simple third party tool.

  Was this answer useful?  Yes

vijay

  • Jun 7th, 2006
 

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

  Was this answer useful?  Yes

Rishi Raj

  • Jun 17th, 2006
 

Great answer

  Was this answer useful?  Yes

Rammy

  • 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

  Was this answer useful?  Yes

kiran

  • Jul 12th, 2006
 

In QTP folder there is a QtpPlus setup.

Install it as it consists of merger utility tool and some other tools

Thanks and Regards,

Kiran

  Was this answer useful?  Yes

Seema G

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

  Was this answer useful?  Yes

Pranay Dalal

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

  Was this answer useful?  Yes

suresh

  • Nov 1st, 2006
 

Hi

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

  Was this answer useful?  Yes

pinki

  • 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?

  Was this answer useful?  Yes

sai krishna

  • 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,

  Was this answer useful?  Yes

Debashish

  • Nov 10th, 2006
 

1 MB

  Was this answer useful?  Yes

Santosh16

  • Dec 11th, 2006
 

Hi,This is Santosh, here I am trying to give you complete process of Object identification.....Please go through it. If you got any doubts, let me know i will clear that...Object Identification While RecordingStores Object as Test Object, Determining the class it fits.For each test object class, Quick Test always learns a list of mandatory properties. Checks whether this description is enough to uniquely identify the object. If it is not, Quick Test adds assistive properties, one by one, to the description, until it has a unique descriptionObject Identification during Test RunSearches 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 of test objectUses Smart Identification mechanism to identify an object, even when the recorded description is no longer accurateObject Repository Custom Configuration You use the main screen of the Object Identification dialog box to set mandatory and assistive recording properties, to select the ordinal identifier, and to specify whether you want to enable the Smart Identification mechanism for each test object. From the Object Identification dialog box, you can also define user-defined object classes and map them to Standard Windows object classes, and you can configure the smart identification mechanism for any object. To configure mandatory and assistive properties for a test object class: Choose Tools > Object Identification. The Object Identification dialog box opens.Select the appropriate environment in the Environment list. The test object classes associated with the selected environment are displayed in the Test object classes list.Select the properties you want to include in the Mandatory Properties list and/or clear the properties you want to remove from the list. Enter a valid property in the format attribute/ and click OK. The new property is added to the Mandatory Properties list. For example, to add a property called MyColor, enter attribute/MyColor. Click OK to close the Add/Remove Properties dialog box. The updated set of mandatory properties is displayed in the Mandatory Properties list.In the Assistive Properties list, click Add/Remove. The Add/Remove Properties dialog box for assistive properties opens. Select the properties you want to include in the assistive properties list and/or clear the properties you want to remove from the list. Enter a valid property in the format attribute/ and click OK. The new property is added to the Mandatory Properties list. For example, to add a property called MyColor, enter attribute/MyColor. Click OK to close the Add/Remove Properties dialog box. The properties are displayed in the Assistive Properties list.Use the up and down arrows to set your preferred order for the assistive properties. When you record a test and assistive properties are necessary to create a unique object description, QuickTest adds the assistive properties to the description one at a time until it has enough information to create a unique description, according to the order you set in the Assistive Properties list.Introduction to Smart IdentificationWhen QuickTest uses the recorded description to identify an object, it searches for an object that matches every one of the property values in the description. In most cases, this description is the simplest way to identify the object and unless the main properties of the object change, this method will work. If QuickTest is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QuickTest ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object. While the Smart Identification mechanism is more complex, it is more flexible, and thus, if configured logically, a Smart Identification definition can probably help QuickTest identify an object, if it is present, even when the recorded description fails. The Smart Identification mechanism uses two types of properties: Base filter propertiesThe most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link?s tag was changed from

Sai Srinivas

  • 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

  Was this answer useful?  Yes

nazeer

  • Jan 21st, 2007
 

hi

 thank u .it very good .one more question

how u perform batch testing in QTP 8.2?

  Was this answer useful?  Yes

chaitanya

  • 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

  Was this answer useful?  Yes

Aan

  • 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

  Was this answer useful?  Yes

sriram pavan kumar

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

  Was this answer useful?  Yes

J Lokanadham

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

  Was this answer useful?  Yes

bhaskarreddy

  • Mar 2nd, 2007
 

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

  Was this answer useful?  Yes

meetsubhas

  • Apr 8th, 2007
 

Hello friendz this is subhasis,

There are two types of object repository
1.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.

  Was this answer useful?  Yes

siphan

  • 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

  Was this answer useful?  Yes

sarada

  • 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

  Was this answer useful?  Yes

tseshasayi

  • Jul 18th, 2007
 

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.

  Was this answer useful?  Yes

vinay.pesaru

  • 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 Repository

1) Per-action: For each and every action separate Object repository is created and is managed by QTP

2) Shared Repositary: Object repositary can be associated to mulitple test, it can be managed manually, advantage of Shared repository is easy to maintain.

  Was this answer useful?  Yes

nancy ramos

  • 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

  Was this answer useful?  Yes

kusma

  • Oct 6th, 2007
 

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

  Was this answer useful?  Yes

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 

§

  Was this answer useful?  Yes

 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

  Was this answer useful?  Yes

manishgi

  • May 22nd, 2008
 

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

  Was this answer useful?  Yes

manojkiran

  • Jun 6th, 2008
 

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       

  Was this answer useful?  Yes

vidput

  • Jun 22nd, 2008
 

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 .

  Was this answer useful?  Yes

pinkys

  • Nov 18th, 2008
 

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.

  Was this answer useful?  Yes

SanthanCh

  • Nov 22nd, 2008
 

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.

  Was this answer useful?  Yes

Tru123

  • Mar 31st, 2009
 

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

  Was this answer useful?  Yes

ajayseed

  • Feb 12th, 2010
 

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

your.heer

  • Jul 2nd, 2010
 

Object repository: In QTP, we can store the objects in the object repostiory.  There are two type of object repository :

1. Local repository
2. Shared (Centeral) repository

QTP recognize the objects by matching the properties are availble in the object repository and run time.

  Was this answer useful?  Yes

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

  Was this answer useful?  Yes

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.

  Was this answer useful?  Yes

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions