Object Repository is a collection of object and properties with which QTP will be able to recognize the objects and act on it.QTP-Object-Repository

Methods of Object Repository –

  1. Add – Adds an object repository file to the specified position in the collection.
  2. Find – Finds the position of the specified object repository file.
  3. MoveToPos – Moves the object repository file entry from the current position to the specified new position.
  4. Remove – Removes the object repository that is located in the specified position.
  5. RemoveAll – Removes all object repository files from the collection.
  6. SetAsDefault – Sets the object repository files associated with the current action as the default files for all new actions.

Properties of Object Repository –

  1. Count – The number of object repository files in the collection.
  2. Item – Returns the path of the object repository located in the specified position.

Additional Reading

If you want to keep track of further articles on UFT (QTP). I recommend you to subscribe by Email and have new UFT articles sent directly to your inbox.

Subscribe to get free updates on UFT!

LearnQTP is the most popular site on UFT (formerly QTP).

Enter your first name and email address below to instantly subscribe and download an eBook on Optimizing UFT Scripts. In future, we will make sure you get new tips & tricks on UFT delivered direct to your email box.

Please check your email and confirm free subscription!