petersm wrote:
Hello all,
We have several large sites that are using CGI::App and we are very unhappy
with our current testing methods which consist of trying to do everything a
stupid user would do to try and break the app and then fixing problems as they
occur. This isn't that bad for smaller apps but for larger stuff it get's to
be a headache. We are looking for a way to automate the testing. So I thought
I would ask this question here. Because our sites are dynamic and the links
are usually generated automatically I didn't think a simple link checker would
work. How are other people testing their large apps? Any favorite resources or
sites to read?

Have a look at the test suite that comes with CGI::Application. That is a pretty simple and straight forward way to test your CGI Applications.


If you want to test the system as it is running on the webserver, have a look at WWW::Mechanize, which will allow you to load URLs, follow links, fill in forms and click buttons... A very powerful way of testing your application.

Lastly, if you want are using Apache, and want to run the webserver as part of the test package as well, look at the new Apache::Test module. This has been developed to test mod_perl2, but it does not require mod_perl2. This will allow you to run a dummy webserver in the test environment and run all your tests against the web server... Again a very powerful method for testing your websites. See the mod_perl2 test suite for an example...

I am guessing the ultimate automated testing system would include a combination of Apache::Test and WWW::Mechanize.

Cheers,

Cees


--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to