SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2008
    Location
    Beaver Dam, WI USA
    Posts
    72
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    OR Hierarchy/ Object Manipulation

    I'm looking at my local OR for an action I created and noticed I needed a few more objects to be added to it (options that appear when certain things are selected). So I go ahead and click add to local repository. It adds a completely new web browser object tree in the OR, but I'm able to drag the object to the previous tree under a previous frame.
    <font class="small">Code:</font><hr /><pre>
    &gt;Browser
    :_&gt;Page
    :_&gt;Frame
    :_&gt;Objects

    &gt;Browser_2
    :_&gt;Page_2
    :_&gt;Frame_2
    :_&gt;New Object
    </pre><hr />
    I guess my question being is is possible to do this drag and drop without compromising the stability of the script? and if so could I eliminate the frame from the tree and just have
    <font class="small">Code:</font><hr /><pre>
    &gt;Browser
    :_&gt;Page
    :_&gt;Objects
    </pre><hr />
    I just don't know if the frame portion of the tree really contains any information.

    Thanks

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    Germany
    Posts
    458
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: OR Hierarchy/ Object Manipulation

    Moving the object by drag &amp; drop should work. I did this quite often and scripts run fine and stable. I am not sure about the frame. I would guess you will need to be careful. QTP must be able to identify the object uniquely in the frame. So try it and use the "Highlight in Application" button to verify that QTP can still identify the object properly. If it gets hightlighted it should also find the object during test run.

  3. #3
    Member
    Join Date
    May 2008
    Location
    Beaver Dam, WI USA
    Posts
    72
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: OR Hierarchy/ Object Manipulation

    Thanks Tom I moved things around and deleted the frames from the hierarchy and didn't have a problem... yet. I think that I might hit a snag if I were to try that with an object that appears on multiple frames ex. btnSaveAndContinue... or could I just have the one object instead of two objects in different frames hmm...

 

 

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 09:59 AM.

Copyright BetaSoft Inc.