This is a migrated thread and some comments may be shown as answers.

Best effort for Telerik to test dead links

1 Answer 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dean
Top achievements
Rank 1
Dean asked on 19 Oct 2012, 02:37 AM

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.

Dean

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 24 Oct 2012, 04:06 PM
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,
Cody
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
Tags
General Discussions
Asked by
Dean
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or