Results 1 to 3 of 3

Thread: Load object repository to a test

  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    Smile Re: Load object repository to a test

    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......


  3. #3
    Expert Member
    Join Date
    Sep 2007
    Answers
    110

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact