Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use shared OR
#1
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.
Reply
#2
Btw, I am using QTP9.2 version
Reply
#3
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
Reply
#4
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Updating Shared repository vinod_3466 3 5,256 06-29-2016, 02:16 PM
Last Post: Ankesh
  QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7 Pallavi 3 4,263 02-25-2014, 02:04 PM
Last Post: guin.anirban
  Shared Object Repository issue ShekharUlli 2 4,128 09-20-2013, 02:56 PM
Last Post: ShekharUlli
  Copy file to network shared location sams001 0 3,488 04-03-2013, 02:10 AM
Last Post: sams001
  Can a make Shared OR be made a Local OR sams001 0 2,197 10-30-2012, 03:07 PM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)