On Wednesday, August 1, 2001, at 04:29 PM, beginners-digest-
[EMAIL PROTECTED] wrote:

> Whilst this could be done in Perl, I don't think it has been, and I
> don't think it's a task for a beginner.
>
> I would take a look at comp.software.testing
>
> Point a browser at http://www.testingfaqs.org/t-gui.htm too, which has a
> list of gui testing tools.

I picked up one of the intro to Xtreme Programming books, and one of 
their tenets is "Decide what you want to do; write a test to see if 
you're doing that; write code to pass that test". Sure, it's common 
sense, but there's probably something to be said for doing it formally.

99% of the Perl I write is CGI stuff. I've thought about (but haven't 
done much research into) setting up some testing scripts that use, 
perhaps, LWP to fake form submission for CGI testing. It seems like it 
would be a fairly straightfoward task... Write a testing script, have it 
call a CGI and capture the error message or output that the CGI would be 
sending back to a browser.

No real question here, just musing aloud.

Anyone done anything similar? Any potential pitfalls? It seems that a 
basic framework for the testing suite could be written once, then 
modified for the number of fields, their types and names. Read that in, 
maybe from a hash, and you could develop the whole thing as a module 
maybe? Anything like this already exist?

Reply via email to