On Tue, 29 Jan 2002 10:23:45 -0500
Shane Landrum <[EMAIL PROTECTED]> wrote:

> Your talking about this reminded me of a peeve I've had lately.
> I need webpage testing that doesn't suck. In particular, I need
> something like Inline::Webchat without its strange limitations. 
> I also need more abstraction. I've got a lot of Apache handlers
> written in Perl which talk to databases and make web-based editing
> forms. I need to do things like "okay, find each link that looks
> like http://host/edit/thingy/?foo=(number)&action=(something). Now
> click through all those pages and run tests on each one of them."
> Hand coding all those tests could really suck, so I haven't even
> tried.
> 
> What I really want is something like the commercial web-testing
> tools--- Segue Silktest and similar. Has anyone thought about
> solving this problem?

Recently I've been doing this with two ways:

1) Unit testing for "Model/Control" classes

Exactly same with what Tony introduced in his mail. 

2) Acceptance Testing with Live HTTP, DB Server

We've acomplished with following tools:

* shell script, to setup/teardown local database
* Apache::Test module http://httpd.apache.org/test/
  to fire up local httpd 
* LWP::UserAgent, HTTP::Request::Common, HTML::Form and other LWP
  and HTML-Parser families, to do actual testing

Writing tests with these tools is a little messy. I think I should
use HTTP::TestEngine / RoboWeb or something like that to reduce my
work. But I've not given a shot to 'em.



--
Tatsuhiko Miyagawa <[EMAIL PROTECTED]>

Reply via email to