Best effort for Telerik to test dead links

2 posts, 0 answers
  1. Dean
    Dean avatar
    8 posts
    Member since:
    Oct 2012

    Posted 18 Oct 2012 Link to this post

    Hi there

    Using Test Studio what is the best way to check for dead links on a page please.

    Using code and just using the tools available to test studio.

  2. Cody
    Cody avatar
    3354 posts

    Posted 24 Oct 2012 Link to this post

    Hi Dean,

    First I apologize for the delay getting back to you on this question.

    I have to be honest and admit that Test Studio is not the best tool to use for testing/validating the links your website contains. There are other better tools out there on the market specifically designed to address this testing problem.

    To do it in Test Studio will require writing some code. The basic approach would be something like this:

    Step 1 - Navigate to a specific page of your web site
    Step 2 - Run a coded step that
    a) Locates all links contained on the page
    b) Makes an HTTP Web Request to the href of the link
    c) Looks at the response to validate it (it's not a 404 or other error response
    d) Reports a list of dead links for that page

    This will need to be repeated for every page of your website. Step 2 could be put into a common function that is repeatedly called after each unique Navigate step for each page of your website.

    If you want to pursue the code path let me know and we can assist you implementing it.

    Kind regards,
    the Telerik team
    Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
    Vote now
Back to Top