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 2005
    Location
    Raliegh, NC
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    TestObject.Find() method

    Does anyone out there know what the most effecient way of finding a test object would be? I am trying to find test objects based off of certain properties, namely, Name || Class || ParentName || ParentClass || Text or a combination of any of these.

    I have currently written a method to accomplich this but I find that it is kind of slow. What I am currently doing is mapping the main window of the application under test in the TestObject Map. I then call mainWindow().getMappableChildren and then loop through those mappable children, looking for the object I want (I use the find method here).

    Is there a more effecient way of doing this without using the TestObject Map for each control?

    Thanks for any input.
    Thanks,

    SoftproMike

  2. #2
    Senior Member
    Join Date
    Mar 2003
    Location
    Austin, TX, USA
    Posts
    1,489
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TestObject.Find() method

    I haven't used RFT in a couple of years. I thought I had heard that this method had since been implemented in a more recent version? I.E. to search for objects based on properties.

  3. #3
    Member
    Join Date
    May 2005
    Location
    Raliegh, NC
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TestObject.Find() method

    Hey cyblue,

    There are a couple of methods now. I have done more experimenting and found that the find method is not the real bottleneck with what I am doing.

    The real problem is that I am using it to find every control, everytime I want to do seomthing with the control. I have since learned that it will probably be more effecient to find all the controls we care about on the screen, then store them in a hashtable and get them as needed.

    Thanks for the reply,

    SoftproMike
    Thanks,

    SoftproMike

 

 

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.11%
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:43 AM.

Copyright BetaSoft Inc.