SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8

Thread: Object Model

  1. #1
    Member
    Join Date
    Dec 2006
    Location
    Hyderabad, INDIA
    Posts
    68
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Object Model

    Hi all,

    Could anyone help me out in the following?

    1. What exactly is test object and run-time object?

    2. Can we consider all the objects present in object repository as test objects?

    3. When we spyed an object, what is the difference b/w test methods/properties and run-time methods/properties?

    4. In what scenarios they can be useful?

    Thanks in advance,

    Vijaya Bhaskar

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object Model

    the test object is the application under test -AUT (means: the application you want to test).
    runtime-object is one object from the AUT during the test. the properties during the runtime are "runtime object properties", these properties may be different from the properties stored in the repository.

    please take a look at the user manual of QTP to read out more about this topic. it's helpful to know the basics before you start to automate a test.
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

  3. #3
    Member
    Join Date
    Dec 2006
    Location
    Hyderabad, INDIA
    Posts
    68
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object Model

    So...Before running the script, the objects in AUT are test objects and during running they are run-time objects...right?

  4. #4
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object Model

    yes, it's right.

    have a look at the manual to the topics

    GetTOProperty and GetROProperty

    there you will find out the differences
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

  5. #5
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object Model

    [ QUOTE ]
    So...Before running the script, the objects in AUT are test objects and during running they are run-time objects...right?

    [/ QUOTE ]
    This was, and at times still is, confusing for me (a relatively new QTP user).

    But I think it is more correct to consider the Test Objects which were recorded and placed in the OR as distinct and seperate from the Runtime Objects that QTP encounters as it runs your scripts. It is the statements in your test case that "tie" the two together, so to speak:

    Browsers("myBrowser).Page("thatPage").webLink("thi sLink").etc

    For example I believe the above statement instructs QTP to "find the webLink object described by the "thisLink" OR Test Object description, who's parent is the Page object described by the 'thisPage' OR Test object description", so on and so forth up the object chain (or down the object chain...). Then for each object referenced in the test case statement, QTP attempts to find a Runtime Object on the screen that matches the TO description--and if QTP can't an "object not found..." type of error occurs.

    Perhaps others more experienced than I will correct me on these assumptions and statements, but currently this is how I believe the object recognition system uses to record-time Test Objects to find the proper Runtime Objects during test execution.

    -Hope this helps, Terry

  6. #6
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object Model

    i mean, that a "runtime object" not exist. but the object (stored in repository or defined with descriptiv programming) has specific properties during runtime. the "runtime object properties" may be different from the properties stored in the repository. the properties stored in the repository are the <font color="red">"test object properties"</font>. the actual properties are the <font color="red">"runtime object properties"</font>

    if it isn't so,please correct me

    you can parametrize the object properties in the repository, over this way you could change the properties with a loaded datatable (as example)
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

  7. #7
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object Model

    My two shillings worth:

    TO = OR

    RO = AUT

    Mark Smith.

  8. #8
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object Model

    [ QUOTE ]

    TO = OR

    RO = AUT

    [/ QUOTE ]

    exact...
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:05 PM.

Copyright BetaSoft Inc.