kappa has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to go a little XP and automate functional tests. Shortly, I want to say: "go there (url), click that button and make sure it added the correct line to the table over there (url)". Building such a framework seems a big chunk of work, so I found CGI::Test, HTTP::WebTest and HTTP::Monkeywrench. I read the docs, felt a little suspicios and decided to seek for wisdom in the Monastery.
CGI::Test does not work over HTTP, it simulates CGI environment and runs scripts capturing their output and analyzing it. I don't know why the author took that way yet, there's surely a bunch of reasons as CGI::Test is big and probably feature-rich and mature. But that means I won't be able to test anything but real CGI scripts, which should be runable from a local filesystem. The last update to CGI::Test was more than a year ago, so the author is likely to have lost interest in it or it got perfect (version 0.1.3).
The other frameworks look like a nice alternatives, both simpler and work over HTTP. Monkeywrench was last updated in 2000, but has a interface I liked most of all. But the POD is clumsy :)
Due to the number of times I said "but" here I have mixed feelings. Does someone use any of the above-mentioned on a regular basis? What are your impressions? Do they help? Do you people automate functional testing of web-applications at all? There's a lot of commercial web-testing packages available on the market, does somebody here use those?
Maybe unit-testing is enough?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Functional testing of CGI apps
by Ovid (Cardinal) on Jun 03, 2002 at 18:02 UTC | |
|
Re: Functional testing of CGI apps
by thraxil (Prior) on Jun 03, 2002 at 17:44 UTC | |
|
Re: Functional testing of CGI apps
by perrin (Chancellor) on Jun 03, 2002 at 18:31 UTC | |
|
Re: Functional testing of CGI apps
by samgold (Scribe) on Jun 04, 2002 at 04:07 UTC |