Checking Links to other Websites

2 posts, 0 answers
  1. Sebastian
    Sebastian avatar
    80 posts
    Member since:
    Feb 2011

    Posted 24 Aug 2011 Link to this post

    I made a data driven test that connects to external websites to make sure they work.
    I have to know what error I'm looking for to make sure they work at all.
    Is there a better way to do this, or do I need different software to run this kind of test?
    I just want to verify a list of websites from an XLS file and have it report bad webseite that we are linking to.

  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 26 Aug 2011 Link to this post

    Hello Sebastian,

    Let me see if I understand the problem correctly... you have a list of links to external websites that is used on your website i.e. your customers can click on them to go to the external website. You want to verify that the links are functional, they don't return 404 or Server not found, etc. Do I understand this correctly?

    If this is the case I have to be honest and admit that Test Studio is not the best tool to solve this problem. Test Studio excels at functional and regression testing of your website, but not so well at testing for dead links. It can be done but easier solutions exist. The problem, as you point out, is you pretty much need to look for all possible errors that can be displayed in the browser. It would be easier if there were a simple "success" message to watch for, but you don't get that from the browser (you just get the UI displayed for that particular website... which could be hundreds depending on the left of your list).

    Try doing a Google search on "Dead Link Checker". There are many products out there specifically tailored to handle this problem. If it were me (since I know how to program in .NET) I would write my own small tool from scratch that used the .NET HTTPRequest class to verify the website is connectable and the webpage can be downloaded without regard to actual content.

    I hope that helps!

    Kind regards,
    Cody
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Back to Top