How to set the Shared Object Repository option for a test ?

To set only one test to use the Shared Object Repository option:
1. Click the “New” button or go to File -> New to open a new test.
2. Go to Test -> Settings.
3. Select the Resources tab.
4. In the Object repository type box, select one of the options:

  • Select “Per-action” to set the Object Repository mode for your test to the Object Repository per action mode.
  • Select “Shared” to set the Object Repository mode for your test to the Shared Object Repository mode.

5. If you selected Shared in step 4, specify the Shared Object Repository file you want to use as the test’s Object Repository file. To specify a file, enter the Object Repository file name or click the “Browse” button and select a resource file (*.tsr) from the Open dialog box. To create a new Shared Object Repository file, enter a new file name in the Shared box.Note:
These steps need to be done in a new script. Once you have modified the script, you will not be able to change the option.

To set all new scripts to use a Shared Object Repository:
For QuickTest Professional 6.5 and above
1. Click the New button or go to File -> New to open a new test.
2. Go to Test -> Settings.
3. Select the Resources tab.
4. Select the Shared option for the “Object-repository type”.
5. Specify the Shared Object Repository file you want to use as the test’s Object Repository file. To specify a file, enter the Object Repository file name or click the ellipse button <…> and select a resource file (*.tsr) from the Open dialog box. To create a new Shared Object Repository file, enter a new file name and path in the Shared box.
6. Click the “Set as Default” button.
7. Click <Apply> and <OK>.

For previous versions of QuickTest Professional:
1. Click the New button or go to File -> New to open a new test.
2. Go to Tools -> Options.
3. Select the Resources tab.
4. Select the Shared option for the “Default object repository type.”
5. Specify the Shared Object Repository file you want to use as the test’s Object Repository file. To specify a file, enter the Object Repository file name or click the “Browse” button and select a resource file (*.tsr) from the Open dialog box. To create a new Shared Object Repository file, enter a new file name in the Shared box.
6. Click <Apply> and <OK>.

Note:
Any new script created after this option has been set will use the Shared Object Repository by default.

Leave a comment