http://www.perlmonks.org?node_id=663212

dokkeldepper has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

currently I wrote a small CGI-Application. After using Test::More & relatives quite extensively for Desktop applications I wondered if there exist a testing framework for CGI-Programs?

Replies are listed 'Best First'.
Re: Automatet Unit Testing for CGIs
by stark (Pilgrim) on Jan 19, 2008 at 12:49 UTC
Re: Automatet Unit Testing for CGIs
by randyk (Parson) on Jan 19, 2008 at 15:39 UTC
Re: Automated Unit Testing for CGIs
by bobf (Monsignor) on Jan 20, 2008 at 05:32 UTC

      Thank you, this organized my thinking about CGI-Testing.

      What I miss seriously is an easy way to test parallel access, because I use a (very) small state file for global data with locking.

      This, of course, would be a different story

Re: Automatet Unit Testing for CGIs
by hipowls (Curate) on Jan 19, 2008 at 22:21 UTC
Re: Automatet Unit Testing for CGIs
by andreas1234567 (Vicar) on Jan 20, 2008 at 08:49 UTC
    Selenium is a test tool for web applications. The tests are written as HTML tables and can be run directly in most modern web browsers. Selenium can be deployed on Windows, Linux, and Macintosh. Apache 2.0 license.

    There's even a Perl interface: Test::WWW::Selenium.

    --
    Andreas
Re: Automatet Unit Testing for CGIs
by GrandFather (Saint) on Jan 20, 2008 at 09:34 UTC

    CGI::Test seems to be the regression testing tool for CGI. Caveat: I've not used it yet (but plan to in the near future) so I don't know how easy it is to use or how reliable it is.


    Perl is environmentally friendly - it saves trees