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Ā 
Note:
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:

  • qtp associate object repository
  • how to associate object repositories at run time qtp
  • associate an object repository in UFC
  • what is associate object repository in qtp
  • ways to associate the objectrepository in qtp
  • how to associate shared object repository
  • how to associate shared object during runtime
  • how to associate repository in repository manager in qtp
  • how to associate repository in qtp
  • how to associate object repository during run time