Saturday 9 November 2013

QTP Object Repository Type


1)Local object repository
2)Shared object repository


Local Repository = This repository only used by the one test where we can create the local repository. we cannot use the same object presend in the local repository into the different test.

If we change any object values in local repository, its effect only one test.


Shared Reposity = we can use this object which we present in the OR into any tests by adding the shared repository.

If we are change any object property values in shared object repository, then its effect all the tests which we are using the shared object repository.

In Real time we are using only shared object repository. Becaue all the team members using same object repository. For Edit accedd for shared object repository will give to only one person.

Shared Repository saved as file extension *.tsr



-> Steps for create shared object Repository

1) Create the local object Repository in test
2) Resources-> Object Repository -> File -> Export Local Objects -> and save the object Repository with Extension .tsr in local disk
3) Then we can use this shared object repository into any tests.

-> Steps for using Shared object Repository in Tests

1) Open the new tests
2) Resources -> Associate Repositories -> Add Repository -> Add Action -> click ok
3) Now all the object present in the shared object repository will use in current test.But here all the object details are in view mode only. we cannot Edit the objects.


-> Edit object property value in shared object repository using object repository manager

we cannot edit the object preoperty value directly from object repository. we have the object repository manager option for Edit the object property value.

1) Resources -> Object Repository Manager -> open the shared Repository from local machine
2) File -> Enable Editing in object repository manager
3) Now we can Edit/Add the object property value as per the requirements and save the changes. These changes are effect to all tests which tests are using this same shared object repository.


-> Steps for compare the shared object repository using Object Repository- Comparison tool in object repository manager.

if we want to compare two shared object repository and find out the difference in object, we can use this object repository comparison tool.

1) Resources -> Object Repository Manager -> open the shared Repository from local machine
2) Tools-> Object Repository Comparison Tool
3) give the two object repository and clik ok. its compare both files and give the object statistics as below

Identical objects in both file -> its have similiar object in both.
Identical Descriptions and different name -> same desciptions and different name in the object.
Similiar description -> both have similiar description.


-> Combine two shared repository into one using object repository Merge tool.

1) Resources -> Object Repository Manager -> open the shared Repository from local machine
2) Tools-> Object Repository Merge Tool
3) give the two object repository and clik ok. Then save into different object repository name.

No comments:

Post a Comment