Geeks Talk

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.

Load object repository to a test

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

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 11-22-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-22-2007
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 355
Thanks: 4
Thanked 58 Times in 47 Posts
bizzzzzare will become famous soon enough
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......
Reply With Quote
  #3 (permalink)  
Old 11-22-2007
Expert Member
 
Join Date: Sep 2007
Location: Hyderabad
Posts: 115
Thanks: 1
Thanked 19 Times in 15 Posts
rajaputra is on a distinguished road
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.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 10:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved