自动链接检查系统测试 [英] Automated link-checker for system testing
问题描述
我经常用在当逻辑或配置更新意想不到的方式打破脆弱的旧版网站的工作。
I often have to work with fragile legacy websites that break in unexpected ways when logic or configuration are updated.
我没有创建硒脚本所需要的系统的时间和知识。此外,我不想检查具体使用情况 - 我要验证网站上的每一个环节和页面。
I don't have the time or knowledge of the system needed to create a Selenium script. Besides, I don't want to check a specific use case - I want to verify every link and page on the site.
我想创建一个自动化系统测试将通过网站蜘蛛检查链接是否损坏和崩溃。理想的情况下,将有一个工具,我可以用它来实现这一目标。它应该有尽可能多的以下功能,按照优先级从高到低的顺序为:
I would like to create an automated system test that will spider through a site and check for broken links and crashes. Ideally, there would be a tool that I could use to achieve this. It should have as many as possible of the following features, in descending order of priority:
- 通过脚本触发
- 不需要人机交互
- 跟随各个环节,包括锚标签和链接,CSS和JS文件
- 生成一个日志都发现的404,500S等。
- 可以在本地部署检查内网网站
- 支持的Cookie /基于表单的认证
- 自由/开源
有许多部分的解决方案在那里,像 FitNesse的,的 Firefox的LinkChecker 和 W3C的链接检查,但他们没有做的一切我需要的。
There are many partial solutions out there, like FitNesse, Firefox's LinkChecker and the W3C link checker, but none of them do everything I need.
我想用这个测试使用了一系列的技术和平台项目,所以更便携的解决方案更好。
I would like to use this test with projects using a range of technologies and platforms, so the more portable the solution the better.
我意识到这是正确的系统测试不可替代的,但如果我核实,没有网站的部分显然是破碎的方便,自动化的方式,它是非常有用的。
I realise this is no substitute for proper system testing, but it would be very useful if I had a convenient and automatable way of verifying that no part of the site was obviously broken.
推荐答案
我使用的Xenu的链接猎犬此那类的东西。快速检查没有deadlinks等上/任何站点。就在任何URI指向它,它就会蜘蛛在该网站上的所有链接。
I use Xenu's Link Sleuth for this sort of thing. Quickly check for no deadlinks etc. on a/any site. Just point it at any URI and it'll spider all links on that site.
从网站Desription:
Desription from site:
的Xenu的链接猎犬(TM)网络检查
网站断开的链接。链接
验证是否为普通做
链接,图片,框架,插件,
背景,局部影像图,风格
表,脚本和Java小程序。它
显示的continously更新列表
您可以通过不同的URL进行排序
标准。报告可以在生产
任何时候。
Xenu's Link Sleuth (TM) checks Web sites for broken links. Link verification is done on "normal" links, images, frames, plug-ins, backgrounds, local image maps, style sheets, scripts and java applets. It displays a continously updated list of URLs which you can sort by different criteria. A report can be produced at any time.
它符合你作编写脚本的,因为它是一个Windows应用程序,需要手动启动除了是要求。
It meets all you're requirements apart from being scriptable as it's a windows app that requires manually starting.
这篇关于自动链接检查系统测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!