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.



Comments