How to associate Shared Object Repository in QTP

We can associate a Shared Object Repository in three ways

  1. Using Associate Repository
  2. During Runtime
  3. Using Action Properties

Using Associate Repository

  • Go to Resources Menu > Associate Repository > Click on Add
  • Select / Location of Repository file path > Click Open
  • Associate with Action > Click on OK

During Runtime

  • repositorycollection.Add “Repository file path

Using Action Properties

  • Right click on Expert View > Go to Action > Action Properties
  • Select “Associated Repositories” tab > Click on Add >Select / Location of Repository file path
  • Click Open > Click on OKĀ 
In QTP every action will have one local repository, apart from that local repository one can associate more than one shared repository to the action.

Incoming search terms:

  • how to associate object repository in qtp
  • associate object repository in qtp
  • qtp load shared repository from quality center path
  • how to associate a object repository
  • how to add shared object repository to action
  • how to add object repository in qtp
  • associating object repository qtp
  • associaterepository
  • associate shared object reprository