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.

How QTP recognizes the objects stored in object repository

This is a discussion on How QTP recognizes the objects stored in object repository within the QTP forums, part of the Software Testing category; How QTP recognizes the objects stored in object repository...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 02-07-2008
Contributing Member
 
Join Date: Feb 2008
Location: newdelhi
Posts: 49
Thanks: 8
Thanked 3 Times in 2 Posts
suneetham is on a distinguished road
How QTP recognizes the objects stored in object repository

How QTP recognizes the objects stored in object repository
Reply With Quote
The Following 2 Users Say Thank You to suneetham For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 02-07-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
Re: How QTP recognizes the objects stored in object repository

QTP uses the Object Repository to identify objects in the AUT. How will it identify objects stored in the OR? Well, the same way we identify each other because we have their "description" stored in our brain. Even though this is a bad example, but for the sake of explanation, let's say OR is the brain of QTP.

When QTP encounters an objects, it searches for that object in its brain and if it has encountered that object before, it performs the necessary action. If it does not, it fails the test; the same way, if you haven’t seen a person ever before and they ask for you to lend them $100, you would go like “Do I know you?” and walk away.

The OR should contain all the objects that you need for your tests to run successfully. If you want to write a keyword-driven script in QTP to login a user in www.gmail.com, you will have to access the Browser, the respective page, the username field, the password field and the SignIn button. All these objects will be then stored in QTP’s OR. So after you are done recording, you will playback the script and have the user login. This is done because QTP has already stored object definitions for all the objects it has to interact with in its OR.

There are ways to bypass this, by using Descriptive Programming and not making use of QTP’s OR. So, it entirely depends on what you want to use and what you are the most comfortable with.
Reply With Quote
The Following User Says Thank You to Anshoo_Arora For This Useful Post:
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
abt object repository,virtual objects psuresh1982 C and C++ 5 04-20-2009 08:28 AM
how to minimize the storage of objects in Object Repository ? naga.sd.k QTP 4 12-19-2007 05:33 AM
Adding dropdown and table objects to Object Repository praveenchandupatla QTP 0 08-02-2007 08:54 AM
How to add the Oracle form 6i objects in object repository gopathipraveen QTP 0 07-11-2007 07:36 AM
Per-action repository and shared object repository Geek_Guest QTP 1 06-22-2007 05:29 AM


All times are GMT -4. The time now is 04:11 PM.


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