Results 1 to 2 of 2

Thread: How QTP recognizes the objects stored in object repository

  1. #1
    Contributing Member
    Join Date
    Feb 2008
    Answers
    40

    How QTP recognizes the objects stored in object repository

    How QTP recognizes the objects stored in object repository


  2. #2

    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.


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