Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • We're getting a disgusting amount of functionality out of this teeny-tiny program I wrote called simple_scan. It basically lets nearly anybody write TAP-based tests vs. anything you can talk to over HTTP.

    You use test specs to tell it what you want:
    http://yahoo.com/ [yahoo.com] /Yahoo!/ Y branded properly
    Run through simple_scan, that generates a nice Perl test that uses Test::WWW::Simple to see if the regex matches the page. Dead simple.

    It actually turns out that a lot of what we're worried about is "is the content ther

    • I should break down that test spec:
      1. URL to access
      2. regex to match against it
        • Y - match it
        • N - don't match it
        • TY - TODO, should eventually match
        • TN - TODO, should eventually not match
      3. comment

      And it's all TAP, so you can use Test::Harness to write tools to summarize. Should have lots more by CFP time.
  • Sounds like you want something like Test::WWW::Mechanize [cpan.org], but without the Mechanize part.

  • What are you doing now ? Which tools are helping you (Test::WWW::Mechanize, no more XPath based tests etc...) ?

    By the way, were you testing the HTML page itself or the behaviour of the application generating the HTML page ?

    Thanks!