Re: [Http-webtest-general] Checking links in the document
Brought to you by:
m_ilya,
richardanderson
From: Carlos R. <cra...@gt...> - 2004-03-24 06:48:18
|
::LinksTest module update: * Added match_links = (regex1 regex2) * Added ignore_links = (regex1 regex2) * Changed LWP requests to GET instead of HEAD requests. * Only checks unique links now. I noticed that it was checking duplicate links if they existed in the document. If match_links and ignore_links are used on the same test, match_links are first applied, then ignore_links are applied. The results now reports the total count of UNIQUE links in the document, count of tested links, and the failure count. Sample output: 8 links found, 3 tested. Failed: 0. Ilya already added this module to CVS, so it will be included in the next release. If you want to test it, here is the source: Source: http://www.quantumfx.com/software/modules/HTTP-WebTest-Plugin-LinksTest.pm Docs: http://www.quantumfx.com/software/modules/HTTP-WebTest-Plugin-LinksTest.html -Carlos William McKee wrote: >On Thu, Mar 18, 2004 at 10:22:54PM -0800, Carlos Ramirez wrote: > > >>Let me know if the output is any helpful. Thanks. >> >> > >Carlos, > >Sorry for the belated response. The new function debug_links works >wonderfully. My https links are working fine. The failure was due to the >fact that I ran the test on a project that is in production and it >caught a typo. > >I also get an error on a redirect page. GET works fine but HEAD returns >403 Forbidden. I'm using Apache::AuthCookieDBI to handle my login and >don't fully understand how it works in regards to redirects. I suspect >that it's a problem on my end. It would be nice to pass in a regex of >links to search/ignore. For example, > > match_links = ^https:// > >would only test links on a secure server whereas > > ignore_links = ^https:// > >would ignore all those links. Thanks for your contribution. When are you >going to load it onto CPAN? > > >Regards, >William > > > |