i'd write unit tests cgi script. wrote script modulino (script module depending on context) , test functionality make sure parameters in query_string set should.
i'd tried doing this:
$env{'query_string'} = 'param1=some_param'; $cgi = cgi->new; print "param1= ".$cgi->param("param1")."\n"; but seems ignoring that. there way set query string without doing method?
you can use command line arguments cgi.pm.
$ index.pl param1=some_param foo=bar those show in script. still inconvenient unittesting application. if there webserver there anyway, can use test::www::mechanize.
Comments
Post a Comment