SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Jan 2003
    Location
    Norwood
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Large Number of HTML Links

    Hello,

    I have various Web pages that can contain anywhere from 100 to 8000 links on each page. This is a Web based application using
    IE 6.01 DOM ext.
    The issue that I am encountering is that while recording windows decls and/or testcases, the agent responds to the link on the 100 link page in 2 minutes, but on the 8000 link page, this can take well over and hour before it recognizes the HTMLLink and sometime never at all.
    To make it a little clearer, consider a split pane window the left side contains links for devices (Router, Firewall...) and the righ side dispalys the possible messages that each device displays. Each message is a link that contains thresholds. Some routers and firewalls can contain 10 thousand messages and would be links.


    Anyone experienced this before and if so, any suggestions will be appreciated. :-)

    Thank you

    ------------------

  2. #2
    Member
    Join Date
    Sep 2002
    Location
    Chicago, Illinois, USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Large Number of HTML Links

    Although our team has never worked on a page with 8000 links, we have tested pages with ~1000 links. The win declaration time was noticeably long, but, never more than 5 min, I guess (sorry, I have never timed this step). I would bounce the box, redo win declaration. At the mean time, check CPU usage and memory usage.

    If the win declaration took for ever, you can imagine that it will also take forever to run the test. Silktest has to find all the links first before clicking each of them no matter how you/SilkTest identify these links, dynamically or not.

    ------------------

  3. #3
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Large Number of HTML Links

    dont use "record window declarations" to define the window. I wouldnt even bother defining the links as objects.

    I would reference each link like this:

    get it? You can use the gettext to find out the text of the link. Put this in a loop and you should be good to go.

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com
    Ryan McCullough
    RightNow Tech. Inc.

  4. #4
    Member
    Join Date
    Oct 2002
    Location
    Alameda, CA
    Posts
    50
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Large Number of HTML Links

    We have a similar issue here with out administrative page. By the time we've completed a test cycle there can be several hundred links on some of our pages. This slows testing down a lot.

    I've already streamlined the code to get the list of links the minumum number of times, but it's still unweildly. Hopefully Segue will find a way to make the gathering of links a bit faster.

    ------------------
    -Josh
    -Josh

  5. #5
    Member
    Join Date
    Jan 2003
    Location
    Norwood
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Large Number of HTML Links

    Thanks for the replies. This is just one of those things that will be a lengthy process. My CPU is pegged at 100% and I am running a dual zeon 2.2 GHz system with 4 Gigs of memory.

    ------------------

  6. #6
    Senior Member
    Join Date
    Oct 2002
    Location
    Calgary, Alberta, Canada
    Posts
    101
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Large Number of HTML Links

    Hope it works out for you.

    [This message has been edited by signal_11 (edited 04-14-2003).]
    Beware of bugs in the above code; I have only proved it correct, not tried it.
    --Donald Knuth

  7. #7
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Large Number of HTML Links

    Are you looking for a specific link on the page?

    I'm totally with Ryan in that I would not declare the page beyond the main title or something along that line.

    I did a "linkwalker" app a while back because link tester doesn't handle ssl. It's not polished and never actually made it to "production" but here is a piece of it such as it is. It might give you some ideas or might just confuse the issue further.


    ------------------


    [This message has been edited by DJGray (edited 04-14-2003).]

  8. #8
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Large Number of HTML Links

    can you give a quick run down on what that code does djgray? High level overview is kind of what im looking for.

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com
    Ryan McCullough
    RightNow Tech. Inc.

  9. #9
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Large Number of HTML Links

    Yeah... bear in mind, the code is "raw" and I've never moved it to the production folder.

    The idea is, Premera has an application that allows them to treat their website as something of a newsletter or news magazine. We're talking about frequent updates of information.

    I needed something along the lines of link tester, but that would go int a secure web site, and LinkTester doesn't do SSL.

    So, this snippet is from a script that takes a base URL you feed it, counts all the links on that page, gets the caption and target url for the link, clicks it and verifies from the Browser.Location textfield that we actually went where we were supposed to.

    Then, on that page, we recursively do it again. It keeps walking links till all the links on the site have been walked.

    Much of the code is there to deal with odd situations. For example, I wanted to walk "premera.com" links only. If a link takes us from that domain, I'll follow it, but come right back rather than walk the new domain's links. Other examples are mailto: links, links to PDFs and the like.

    I don't know... It may have been a bit much to post it here, but it seemed to fit the context of the original question. Yikes! 8000 links on a single page...

    ------------------

  10. #10
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Large Number of HTML Links

    actually this is very useful for something I am doing now. Thanks dj.

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com
    Ryan McCullough
    RightNow Tech. Inc.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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:08 AM.

Copyright BetaSoft Inc.