The following message is a courtesy copy of an article
that has been posted to comp.lang.perl.announce as well.
The uploaded file
HTTP-WebTest-1.05.tar.gz
has entered CPAN as
file: $CPAN/authors/id/I/IL/ILYAM/HTTP-WebTest-1.05.tar.gz
size: 60698 bytes
md5: 8c9b0742f34310f41e35cca8fc1bdc36
NAME
HTTP::WebTest - Test remote URLs or local web files
DESCRIPTION
This module runs tests on remote URLs or local web files containing
Perl/JSP/HTML/JavaScript/etc. and generates a detailed test report.
The test specifications can be read from a parameter file or input as
method arguments. If you are testing a local file, Apache is started on
a private/dynamic port with a configuration file in a temporary
directory. The module displays the test results on the terminal by
default or directs them to a file. The module optionally e-mails the
test results.
Each URL/web file is tested by fetching it from the web server using a
local instance of an HTTP user agent. The basic test is simply whether
or not the fetch was successful. You may also test using literal strings
or regular expressions that are either required to exist or forbidden to
exist in the fetched page. You may also specify tests for the minimum
and maximum number of bytes in the returned page. You may also specify
tests for the minimum and maximum web server response time.
If you are testing a local file, the module checks the error log in the
temporary directory before and after the file is fetched from Apache. If
messages are written to the error log during the fetch, the module flags
this as an error and writes the messages to the output test report.
Changes since 1.04:
* Installation of http-webtest directory is optional now for Unix
platforms. It is completely disabled on Win32 platform.
* Mentioned in docs that this module should work on Win32
platform. Bug reports from this platform would be appreciated.
* Do not use environment variable WEBTEST_LIB in 'wt' script. It
seems to be needed only for debuging purposes and it was a source
of many Perl warnings if it was not defined.
* Sample Apache config file bundled with this module now contains
directives to disable usage of apache access and resource config
files.
* Use File::Temp for sane creation of temporary directories.
* Removed section 'CHANGES' from HTTP::WebTest POD docs since it
became too long. Anybody interested in changes should consult
this file.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Ilya Martynov (http://martynov.org/) |
| GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80 E4AE BE1A 53EB 323B DEE6 |
| AGAVA Software Company (http://www.agava.com/) |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-