Sha256: a86187117ede80e6c516622d0456394371ba439a9b59b3dffe97bc722edd2d8d
Contents?: true
Size: 2 KB
Versions: 1
Compression:
Stored size: 2 KB
Contents
= magellan http://rubyforge.org/projects/magellan/ http://github.com/nolman/magellan/tree/master == DESCRIPTION: Magellan is a web testing tool that embraces the discoverable nature of the web. == INSTALL: $ [sudo] gem install magellan == GETTING STARTED: There are two supported rake tasks, the Broken Link Task that will explore a site for any //script[@src] //img[@srg] and //a[@href] that return http status codes of 4** or 5**. In your Rakefile add: require 'magellan/rake/broken_link_task' Magellan::Rake::BrokenLinkTask.new("digg") do |t| t.origin_url = "http://digg.com/" t.explore_depth = 3 end This will crawl any links within the same domain as the origin_url to a depth of 3. Treating the origin_url as a depth of 1 that means we will crawl all links that are linked within 2 pages of http://digg.com. The second rake task is one that will explore your site and ensure that given links exist. require 'magellan/rake/expected_links_task' Magellan::Rake::ExpectedLinksTask.new("gap") do |t| t.origin_url = "http://www.gap.com/" t.explore_depth = 2 t.patterns_and_expected_links = [[/.*/,'http://www.oldnavy.com'],[/http:\/\/[^\/]*\/\z/,'/browse/division.do?cid=5643']] end The pattern and expected links is a array of tuples of regex, string. If the current url matches the regex the task will look for the associated url string in the document. This task by default only crawls //a[@href]'s. == ASSUMPTIONS: This tool works best if you follow the practices of unobtrusive javascript, and properly make use of http status codes. == DEPENDENCIES: * ruby 1.8.6 * mechanize[http://mechanize.rubyforge.org/] * activesupport[http://as.rubyonrails.org/] == SUPPORT: General help forum is located at: * http://rubyforge.org/forum/forum.php?forum_id=31224 Mailing list: * http://rubyforge.org/mailman/listinfo/magellan-users Bug tracker: * http://rubyforge.org/tracker/?atid=31199&group_id=8055 == AUTHOR: Nolan Evans http://www.nolanevans.com nolane at gmail dot com
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magellan-0.1.3 | README.rdoc |