SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Nov 2003
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Dynamic TD/Cell numbers causing trouble

    Hi,

    Our Web applications are so dynamic, HTML TD or cell numbers change in every build and it is challenging to maintain scripts under such circumstances.

    I have used loops to search for a text and take TD or cell numbers from it but it is still a huge overhead and we are planning to replace our tool due to this issue. (To make matters worse, I have instances where the text I'm searching for is changing along with cell#s!)

    I would appreciate if you can let me know your thoughts on how to eliminate this effort?

    I have not used any other automation tools, it would be helpful to know how other tools work in such cases?

    Thanks a ton in advance for your time and help.
    Talluri

  2. #2
    Senior Member
    Join Date
    Nov 2004
    Location
    Information Technology Park - Bangalore, India.
    Posts
    106
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dynamic TD/Cell numbers causing trouble

    No tool can help if the GUI object names or indexes change frequently. One possible solution is to map all your GUI objects to an XLS or CSV file. You need to keep updating this map file when ever the change occurs in the UI. This way your TP script will remain unchanged.
    There's always one more bug.

  3. #3
    Senior Member
    Join Date
    Sep 2001
    Location
    Philly
    Posts
    1,231
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dynamic TD/Cell numbers causing trouble

    Not knowing your app, not sure if this will help... but it might. When I need to capture dynamic web text and I have something to key off of text/image/object etc, I use ElementID to do this. Examples:

    Name: John

    If the above is 2 different cells (htmltd), they each have thier own properties including ElementID. You can capture the element ID of the Name HTMLTD object then capture text from what ever is in the next cell even if index or elementID changes...

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">theID = HTMLTD(&quot;InnerText='Name:'&quot.ElementID
    theID = theID + 1

    theName = HTMLTD(&quot;ElementID=&quot; &amp; theID).InnerText</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">That example uses an HTMLTD object to get the starting ElmentID, but every type of object in the browser had an ElementID property (i.e. image, objects, etc) so just adjust accordingly. You can learn the ElementID property of an object using the Identify tool.

    The only way this will not work is if a new object is inserted between the two cells which is much less likely than other parts of the page changing.
    ~Alias~

  4. #4
    Junior Member
    Join Date
    Nov 2003
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Dynamic TD/Cell numbers causing trouble

    Thank you Sandeep and Alias.

    Text comparision is working in many cases but as mentioned in your example, objects are being added/inserted in between cells, and each page on an average has nearly 30 fields making it a nightmare to maintain scripts.

    I'm trying to educate developers about the tool and how their coding changes impact scripts.

    Thank you!

 

 

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 10.34%
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:14 AM.

Copyright BetaSoft Inc.