libtest-cgi-multipart-perl 0.0.3-1 (ppc64el binary) in ubuntu trusty
It is quite difficult to write test code to capture the behaviour
of CGI or similar objects handling forms that include a file upload.
Such code needs to harvest the parameters, build file content in MIME
format, set the environment variables accordingly and pump it into the
the standard input of the required CGI object. This module provides
simple methods so that having prepared suitable content, the test script
can simulate the submission of web forms including file uploads.
.
Moreover a test script is not always the best place to prepare content. Rather
a test script would rather specify requirements for a file a upload: type,
size, mismatches between the file name and its contents and so on. This module
cannot hope to provide such open ended functionality but it can provide
extension mechanisms.
.
Test::
CGI::Simple. In principle it ought to work with all equivalent modules
however each module has a slightly different interface when it comes to file
uploads and so requires slightly different test code.
Details
- Package version:
- 0.0.3-1
- Status:
- Published
- Component:
- universe
- Priority:
- Optional
Downloadable files
- libtest-cgi-multipart-perl_0.0.3-1_all.deb (24.1 KiB)