Next | Automated Testing | 31 |
Every program presents its own little peculiarities
For example, acctsrvcs is a web application
To test this, I used the WWW::Mechanize module
I subclassed it with methods specific for acctsrvcs
my $agent = WWW::Mechanize::MJD->acctsrvcs(autocheck => 1, die => 1, section => 'spam');
This logs in through websec
Including the silly "You already have a session running" page
Then it goes to the "spam filtering" section of acctsrvcs
Alternative approach:
Write a library that sets up the CGI environment variables
it runs and acctsrvcs directly, as if it were a web server
Next | Copyright © 2004 Mark Dominus |