SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Coding Challenge #4

    Write a function that returns the links on a page organized into three lists of window, one for internal links, one for external links, one for email links.

    Internal links are defined as links whose url partially matches that of the current URL. In other words, if the current URL is http://www.qaforums.com/whatever, only links that contain www.qaforums.com should be considered internal.

    More rules:

    Define an enumerated type to differentiate between the LIST OF WINDOWs.

    Comment your code

    Include a main where you call the function and print out the return values nicely.

    The function should accept an optional parameter which is the frame to use. If not specified, use BrowserPage.

    Email links are defined as links which start with "mailto:"

    Here's the function header:

    LIST OF LIST OF WINDOW GetLinksByType (WINDOW wFrame optional)

    A HUGE number of points to the winner(s)

    Extra points for creating a datatype so you don't have to type LIST OF LIST OF WINDOW

    Hopefully I've made this clear, please post questions if you have them.




  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Coding Challenge #4

    What do you mean by the use of Frame?

    Does this replace BrowserPage when it is used?

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

  3. #3
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Coding Challenge #4

    Yes, on a framed page, each frame is a BrowserChild, so the only children of BrowserPage are other BrowserChild objects.

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Coding Challenge #4

    Okay, maybe I should be specific - 12,000 points to the winner.



  5. #5
    Senior Member
    Join Date
    Jan 2002
    Location
    Des Moines, Iowa
    Posts
    289
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Coding Challenge #4

    I have got it all figured out! John is having us do his work for him. Tricky John, very tricky. lol

    Just kidding.

    Sounds like a good challenge, one that I would like to take on but I am in the middle of a software war zone right now.

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

  6. #6
    Senior Member
    Join Date
    Jul 2000
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Coding Challenge #4

    How diabolical!

    I challenge everyone out there to right up a comprehensive test plan for the app that I am testing. The winner gets 100,000 points. The winner will not be announced until my boss approves the test plan.

    Good luck to all.


    ------------------
    Tom
    Tom

  7. #7
    Senior Member
    Join Date
    Jul 2000
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Coding Challenge #4

    Disclaimer - I have very little experience with SilkTest and Browsers. 99% of my experience is with Java and C++ apps. That said, let me have it!

    ------------------
    Tom
    Tom

  8. #8
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Coding Challenge #4

    12,000 points to Tom Mason for an excellent solution. This can, of course, be redeemed for extremely valuable prizes, as soon as we figure out where we left them.

    AJ and I will figure out how you can redeem points for qaforums and Automation Expertise shirts and cups.

    Extra credit is still available for modifying Tom's code and using a enum to handle the return type, since Tom actually modified the original posted function header.

    Challenge #5 later today !!!

  9. #9
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Coding Challenge #4

    Can we have books instead of T-shirt or Mugs?
    I have a BetaSoft.com Mug and I think it's turning into brown(originally yellow)

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

  10. #10
    Senior Member
    Join Date
    Jul 2000
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Coding Challenge #4

    GKs - you have to wash it once in a while...

    ------------------
    Tom
    Tom

 

 

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 07:28 PM.

Copyright BetaSoft Inc.