Micro Focus QTP (UFT) Forums
How to use shared OR - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to use shared OR (/Thread-How-to-use-shared-OR)



How to use shared OR - melody - 09-11-2008

Dear Friends,

I am quite new to QTP.Would really appreciate some help on this matter.

Suppose I created Test1, and I exported the objects to the shared OR from the local OR by going to File-->Export local objects and saved it.Now if I create a Test2, by just copying the script from expert view in Test1, would I be able to run the Test2 successfully, as the objects are already defined in the shared OR.How can i add the shared OR to Test2?Is it okk that a test has only shared OR and no local OR?

Many thanks in advance.


RE: How to use shared OR - melody - 09-12-2008

Btw, I am using QTP9.2 version


RE: How to use shared OR - siri - 09-12-2008

Hi ,

Once you store the object properties for Test 1 and call that to test 1 .
Similarly you can call the same object properties to the test 2
As any hows we will save that object repository on to the desktop in the VB format rght
one shared repository can be called by morethan one test


RE: How to use shared OR - vivekpanna - 09-17-2008

Hi Melody,

As Siri said, you first need to associate the shared object repository to Test2. It can be done using the "Resourses" tool on the menu bar of qtp.
Click on "Resourses" -> select "Associate Repositories" . A popup window will appear. Click on the "+" button on the popup and select the path of the OR what you want to associate with this test. from the bottom section of the popup, select the actions u want to use this OR (Shared).

Once u do this, you can very well run the script copied from test 1 on test 2 (provided, you do that have any environment variable or datatable dependencies.

Regards,
Vivek