Results 1 to 13 of 13

Thread: how QTP indentifies the object plz provide me all the ways of identifying the object

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jan 2008
    Answers
    5

    how QTP indentifies the object plz provide me all the ways of identifying the object

    how QTP identifies the object plz provide me all the ways


  2. #2

    Re: how QTP indentifies the object plz provide me all the ways of identifying the obj

    QTP uses the Object Repository file to recognize objects on the application. When QTP runs a action, it uses the Object Repository to locate objects. It reads an object’s description in the Object Repository and then looks for an object with the same properties in the application being tested


  3. #3

    Re: how QTP indentifies the object plz provide me all the ways of identifying the obj

    During recording qtp looks at the object and stores it as test object.For each test object QT learns a set of default properties called mandatory properties,and look at the rest of the objects to check whether this properties are enough to uniquely identify the object.
    During test run,QT searches for the run time obkects that matches with the test object it learned while recording


  4. #4

    Re: how QTP indentifies the object plz provide me all the ways of identifying the obj

    QTP recognizes all objects in the Application under test using the set of mandatory properties that it stores for all Test Objects while recording. If QTP is not able to recognize the objects using the set of mandatory properties it uses another set of properties called the assistive properties. Incase the assistive properties are also not enough to uniquely identify an object QTP resorts to using the ordinal identifiers for the object that are properties like the index, location and time of creation of the object. If all this fails QTP resorts to the smart identification mechanism.


  5. #5

    Re: how QTP indentifies the object plz provide me all the ways of identifying the obj

    First of all QTP will consider all the properties present in the Object Repositary except Ordinal identifier and tried to identify the object, if it fails then it will forget above the all these properties and uses the "smart identification" mechanism in the following way:

    First of all it will use all the "Base filter" properties and try to match with all the objects present in the AUT(Application under Test) and then prepare the test of objects which are matched with those properties, if the list contains only one object then it is the object, otherwise if the list contains more than one object it wil take the support of the first "optional filter" properties and try to match with all the objects in the list and the prepare a new list in the objet which are matched with theat "OF" properties , if the list contain more than one object it will take the support of second "OF" property and continues the above process till the list contain one object or up to the end of the "OF" properties list.


  6. #6

    Re: how QTP indentifies the object plz provide me all the ways of identifying the obj

    During recording or pre-learning QT capturing the object property's based on the
    mandatory and also assertive optional properties for unique identification but
    those property's are not enough for identification then it will take the help of
    ordinal identifier (like index or location). While execution QT using these
    property's it will uniquely identify the specific object on the AUT.


  7. #7
    Junior Member
    Join Date
    Mar 2009
    Answers
    20

    Re: how QTP indentifies the object plz provide me all the ways of identifying the obj

    So it is mandatory to add Object Repositories or we can do without it. I mean, is it ok if we are recording without adding Object Repositories and running the test, what could be the effect of this? Please let me know.


  8. #8
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: how QTP indentifies the object plz provide me all the ways of identifying the obj

    Khanz,

    Do you mean you need to know whether Running the test is possible without recording the test else. Let me know precisely.

    Thanks
    Deepasree


  9. #9
    Junior Member
    Join Date
    Mar 2009
    Answers
    20

    Re: how QTP indentifies the object plz provide me all the ways of identifying the obj

    Hi Deepasree,

    My question is that we can record & playback the test without adding Object Repositories as well, then where lies the significance of Object Repositories ? Please correct me if I am missing something.

    Regards,
    Zareen


  10. #10
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: how QTP indentifies the object plz provide me all the ways of identifying the obj

    hi Khanz,

    You can record the test once u record it all the objects will be added in OR Resources->Object repository. So that if u save the test u can run multiple times same result will be displayed.

    If you don't need objects in OR then you should write descriptive programming, function libraries. If once function library is created you can simply call the function.

    Thanks
    Deepasree


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