Skip to content

Link Checker

This task will check whether all of the hyper links on a web page are valid.

Settings

Depth

Required
The maximum depth of sub-pages to check. Set to 1 to only check links on the URL specified, 2 to check links on each page linked to from the URL specified, etc.

Output File

Required
The XML file to save the results to.

Timeout

Required
The timeout for to use when fetching each page.

Url

Required
The URL of the web page to check.

Zynk Settings

See Common Task Settings

Examples

A sample output file is shown below. This output was produced with the Url set to 'http://www.google.co.uk/', and Depth set to 1.

<?xml version="1.0"?>
<CheckLinkResult>
    <Url>http://www.google.co.uk/</Url>
    <DateChecked>2015-02-25T17:00:28.3607396+00:00</DateChecked>
    <Links>
        <Link>
            <Links />
            <Title>Search</Title>
            <Href>https://www.google.co.uk/webhp?tab=ww</Href>
            <Result>OK</Result>
        </Link>
        <Link>
            <Links />
            <Title>Images</Title>
            <Href>http://www.google.co.uk/imghp?hl=en&amp;tab=wi</Href>
            <Result>OK</Result>
        </Link>
        <Link>
            <Links />
            <Title>Maps</Title>
            <Href>http://maps.google.co.uk/maps?hl=en&amp;tab=wl</Href>
            <Result>Found</Result>
        </Link>
        <Link>
            <Links />
            <Title>Play</Title>
            <Href>https://play.google.com/?hl=en&amp;tab=w8</Href>
            <Result>Found</Result>
        </Link>
        <Link>
            <Links />
            <Title>YouTube</Title>
            <Href>http://www.youtube.com/?gl=GB&amp;tab=w1</Href>
            <Result>MovedPermanently</Result>
        </Link>
    </Links>
</CheckLinkResult>