QTP Object Repository Framework - How to Create Object Repository Object and load the Object Repository via scripting.

This Page will show you the power of Object Repository Objects.We can actually create the components using the ObjectRepositoryUtil Object.
I implemented this thing using QTP 11.5 (Unified Functional Testing) and created my framework using it's sub Objects.

To Create an Object Repository below mentioned code can be used.

Set RepositoryFrom = CreateObject("Mercury.ObjectRepositoryUtil")

To Load an Object Repository Use:
RepositoryFrom. Load "Please mentioned Object Repository Path over here."

Note: The Object Repository you want to work upon must be saved as Shared Repository, these method will not work upon Local Repository.

1 comment:

  1. It is really a great work and the way in which u r sharing the knowledge is excellent.
    Thanks for helping me to understand basic concepts. As a beginner in software testing your post help me a lot.Thanks for your informative article. software testing Training in chennai | Best software testing Training institute in velachery