Test::WWW::Mechanize released

petdance on 2004-06-28T22:11:27

It only makes sense that eventually I'd put out a WWW::Mechanize module that did testing, doesn't it?

Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates features that make sense for doing web application testing. For example:

$mech->get( $page );
$mech->title_is( "Invoice Status", "Make sure we're on the invoice page" );
$mech->content_like( qr/Unpaid/ );


You mean....

merlyn on 2004-06-29T00:47:36

I didn't need to write so much code for my column on checking website health?

Re:You mean....

petdance on 2004-06-29T03:01:32

I really don't suggest putting actual code in your tests. Instead of:
isa_ok(my $a = WWW::Mechanize->new, "WWW::Mechanize");
use
my $a = WWW::Mechanize->new;
isa_ok( $a, "WWW::Mechanize" );
I'm not telling you, Randal, but other peole who might be reading, so you don't have to argue with it. :-)