<plug type="shameless">
If you're using HTML::Template already, you can use HTML::Template::Dumper to get a hash containing any variables in your template. This would allow you to use WWW::Mechanize or LWP::UserAgent to send the necessary login information with your CGI in test mode. Then just deserialize the hash based on the data you get back and check the values against what you were expecting to get back.
</plug>
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Testing Model under CGI-based validation
by hardburn
in thread Testing Model under CGI-based validation
by jest
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |