Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Load object repository to a test within the QTP forums, part of the Software Testing category; Difference between shared and per action repository? Is it possible to assign a particular object repository to only a particular test? Eg: if for yahoo i will save one obj ...
|
|||||||
|
|||
|
Load object repository to a test
Difference between shared and per action repository?
Is it possible to assign a particular object repository to only a particular test? Eg: if for yahoo i will save one obj repository there after if i open a new test for Google there should be no obj repository available for the new test. Again if i open yahoo test for enhancement , will the obj repository which was saved previously will be loaded automatically or not? How to load a particular object repository which is saved with respect to a particular test into another new test? Question asked by visitor ravikumar |
| Sponsored Links |
|
|||
|
hi Ravi,
A per action repository is an Object repository that pertains to only one action in the script. The Objects present in this repository would be mapped only to the specified action. Other tests cannnot access this repository objects. These have an extension of .mtr A Shared repository objects can be used across actions and by number of tests. Generally this is called as Global Repository as the objects have a global scope and not local unlike Per action repository. These have an extension of .tsr. Based on your requirements as to how frequently the Objects under test are going to used and re-used, we can create a Shared or per-action repository. Generally a Shared repository method is preferred as per action would lead to creating large numbers of repositories and eventually duplication of objects in each repository. As for assigning a particular repository to only that test, a per action repository achieves the same. Every time the test / action is loaded the associated repository gets loaded automatically. But to load an existing Object Repository into another test, would would have to use an Environment variable - Set QtApp = CreateObject("QuickTest.Application") Set QtTestResources = QtApp.Test.Settings.Resources QtTestResources.Add {Path of the Repository to be Opened} Set QtTestResources = Nothing Cheers...... |
|
|||
|
Re: Load object repository to a test
Hi,
Yes. When you open yahoo test for enhancement ,the obj repository which you saved previously will be loaded automatically. If you want to load yahoo test obj repository into google test : 1) After saving yahoo obj repository, you close that test and open a new test. 2)Before recording the google test, go to test->settings->resource tab- and select shared radio button in object repository type. Then browse yahoo test object repository.click on set as default, apply and ok. You will get yahoo obj repository into new test(google test) Cheers....... Last edited by rajaputra; 11-22-2007 at 06:00 AM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I cannot add a object as winmenu to object repository | carina | QTP | 2 | 12-05-2007 06:01 AM |
| Reference to an object in object repository | Geek_Guest | QTP | 0 | 09-24-2007 07:45 PM |
| Load a repository into our QTP script without using an action | niranjanbiswal | QTP | 0 | 07-19-2007 12:52 AM |
| Per-action repository and shared object repository | Geek_Guest | QTP | 1 | 06-22-2007 05:29 AM |
| What is the equivalent in QTP to load the shared Object repository in the memory | Geek_Guest | QTP | 1 | 04-19-2007 01:43 PM |