Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Custom Link Check

Options
LegacyForum
LegacyForum Posts: 1,664 ✭✭
I am having trouble running link checker on some documentation. The problem is the software that is providing the documentation has it's own version of a 404 error. Instead of actually throwing a 404 error it just displays it's own "broken link" page with some text on it. The page is not an actual url however. It is just a page generated by an imbedded executable.

Is there some way I can convince WebKing to treat this as a broken link? The text on the "broken link" page is always the same if that helps.

Comments

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    Options
    Hi dwzysk,

    You have a couple options depending on what your specific scenario. First off, under the Check Links configuration dialog, there is an option to add URLs that are considered broken links ("Report Links to these URLs as Errors). If the executable is redirecting to a page that represents broken links with a URL (or part of a URL) that you can identify, you can add this URL to the list and any links pointing to a page in this list of broken URLs will be considered broken links. More information is available under "Report Links to these URLs as Errors" on page 275 of the WebKing manual.

    You may also use the text on the page to create a CodeWizard rule that will look for specific text and report an error if the text is found. When you create a CodeWizard with the rule, you can use that CodeWizard in conjunction with Check Links through the Aggregate Tool, or through Static Analysis (with both the CodeWizard with the custom rule and Check Links turned on). For more information about using rules to detect broken pages, see "Tracking Occurences of a Designated Error Page" on page 275 of the WebKing Manual.

    Hope that helps!