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 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...
|
|||||||
|
|||
|
How QTP recognizes the objects stored in object repository
How QTP recognizes the objects stored in object repository
|
| The Following 2 Users Say Thank You to suneetham For This Useful Post: | ||
| Sponsored Links |
|
|||
|
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. |
| The Following User Says Thank You to Anshoo_Arora For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |