http-webtest-commits Mailing List for HTTP-WebTest (Page 15)
Brought to you by:
m_ilya,
richardanderson
You can subscribe to this list here.
2002 |
Jan
(38) |
Feb
(83) |
Mar
(10) |
Apr
(28) |
May
(42) |
Jun
(61) |
Jul
(43) |
Aug
(42) |
Sep
(14) |
Oct
(27) |
Nov
(16) |
Dec
(81) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(81) |
Feb
(29) |
Mar
(32) |
Apr
(42) |
May
(3) |
Jun
|
Jul
(11) |
Aug
|
Sep
(33) |
Oct
(6) |
Nov
(4) |
Dec
|
2004 |
Jan
|
Feb
|
Mar
(10) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ilya M. <m_...@us...> - 2002-10-19 23:53:00
|
Update of /cvsroot/http-webtest/HTTP-WebTest In directory usw-pr-cvs1:/tmp/cvs-serv13076 Modified Files: INSTALL Log Message: Minor doc updates Index: INSTALL =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/INSTALL,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** INSTALL 11 Oct 2002 21:35:36 -0000 1.7 --- INSTALL 19 Oct 2002 23:52:51 -0000 1.8 *************** *** 4,8 **** * Perl 5.005 or later - * File::Temp (is included in Perl 5.6.1 and later) * libwww 5.60 or later * libnet (is included in Perl 5.8.0 and later) --- 4,7 ---- |
From: Ilya M. <m_...@us...> - 2002-10-19 23:52:59
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP In directory usw-pr-cvs1:/tmp/cvs-serv13076/lib/HTTP Modified Files: WebTest.pm.in Log Message: Minor doc updates Index: WebTest.pm.in =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest.pm.in,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** WebTest.pm.in 19 Oct 2002 23:14:16 -0000 1.25 --- WebTest.pm.in 19 Oct 2002 23:52:50 -0000 1.26 *************** *** 6,11 **** $VERSION = '2.00'; - # workaround for warning caused by underscore char in $VERSION - $VERSION = eval $VERSION; # actual content of HTTP::WebTest package is in HTTP::WebTest::API --- 6,9 ---- |
From: Ilya M. <m_...@us...> - 2002-10-19 23:24:01
|
Update of /cvsroot/http-webtest/HTTP-WebTest In directory usw-pr-cvs1:/tmp/cvs-serv2331 Modified Files: Changes Log Message: Updated Index: Changes =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/Changes,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** Changes 18 Oct 2002 21:02:45 -0000 1.57 --- Changes 19 Oct 2002 23:23:57 -0000 1.58 *************** *** 13,16 **** --- 13,22 ---- to use relative URLs in tests. + INCOMPATIBILITIES: + + * HTTP::WebTest::Plugin::Apache plugin have been removed from + HTTP::WebTest and will be released as independent CPAN module. It + will no longer be loaded by default even if it is available. + BUG FIXES: |
From: Ilya M. <m_...@us...> - 2002-10-19 23:14:19
|
Update of /cvsroot/http-webtest/HTTP-WebTest In directory usw-pr-cvs1:/tmp/cvs-serv31029 Modified Files: README Log Message: Various doc updates Index: README =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/README,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** README 18 Oct 2002 21:09:31 -0000 1.7 --- README 19 Oct 2002 23:14:17 -0000 1.8 *************** *** 1,8 **** NAME ! HTTP::WebTest - Test remote URLs or local web files DESCRIPTION Introduction ! This module runs tests on remote URLs or local web files containing Perl/JSP/HTML/JavaScript/etc. and generates a detailed test report. This module can be used "as-is" or its functionality can be extended using --- 1,8 ---- NAME [...1081 lines suppressed...] ! as absolute. In this case if schema part of URL is omitted (i.e. URL ! doesn't start with "http://", "ftp://", etc) then "http://" is implied. ! ! user_agent ! Set the product token that is used to identify the user agent on the ! network. ! ! Default value ! "HTTP-WebTest/NN" ! ! where "NN" is version number of HTTP-WebTest. RESTRICTIONS / BUGS This module have been tested only on Unix (e.g., Solaris, Linux, AIX, ! etc.) but it should work on Win32 systems. The module's HTTP requests time out after 3 minutes (the default value for ! LWP::UserAgent). If you want to test https:// web sites you may have to install additional |
From: Ilya M. <m_...@us...> - 2002-10-19 23:14:19
|
Update of /cvsroot/http-webtest/HTTP-WebTest/bin In directory usw-pr-cvs1:/tmp/cvs-serv31029/bin Modified Files: wt Log Message: Various doc updates Index: wt =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/bin/wt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wt 17 May 2002 20:54:09 -0000 1.2 --- wt 19 Oct 2002 23:14:16 -0000 1.3 *************** *** 5,9 **** =head1 NAME ! wt - test one or more web pages, either remotely or locally =head1 SYNOPSIS --- 5,9 ---- =head1 NAME ! wt - test one or more web pages =head1 SYNOPSIS *************** *** 41,47 **** This program runs tests using Perl module ! L<HTTP::WebTest|HTTP::WebTest> on remote URLs or local web files ! containing Perl/JSP/HTML/JavaScript/etc. and generates a detailed test ! report. This program expects given input file(s) to be in format of wtscript --- 41,46 ---- This program runs tests using Perl module ! L<HTTP::WebTest|HTTP::WebTest> on web pages containing ! Perl/JSP/HTML/JavaScript/etc. and generates a detailed test report. This program expects given input file(s) to be in format of wtscript |
From: Ilya M. <m_...@us...> - 2002-10-19 23:14:19
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP In directory usw-pr-cvs1:/tmp/cvs-serv31029/lib/HTTP Modified Files: WebTest.pm.in WebTest.pm Log Message: Various doc updates Index: WebTest.pm.in =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest.pm.in,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** WebTest.pm.in 19 Oct 2002 23:00:55 -0000 1.24 --- WebTest.pm.in 19 Oct 2002 23:14:16 -0000 1.25 *************** *** 14,18 **** =head1 NAME ! HTTP::WebTest - Testing web applications and static web content =head1 SYNOPSIS --- 14,18 ---- =head1 NAME ! HTTP::WebTest - Testing static and dynamic web content =head1 SYNOPSIS Index: WebTest.pm =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest.pm,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** WebTest.pm 19 Oct 2002 22:37:55 -0000 1.29 --- WebTest.pm 19 Oct 2002 23:14:16 -0000 1.30 *************** *** 26,30 **** package HTTP::WebTest; ! $VERSION = '1.99_09'; # workaround for warning caused by underscore char in $VERSION $VERSION = eval $VERSION; --- 26,30 ---- package HTTP::WebTest; ! $VERSION = '2.00'; # workaround for warning caused by underscore char in $VERSION $VERSION = eval $VERSION; *************** *** 35,39 **** =head1 NAME ! HTTP::WebTest - Test remote URLs or local web files =head1 SYNOPSIS --- 35,39 ---- =head1 NAME ! HTTP::WebTest - Testing static and dynamic web content =head1 SYNOPSIS *************** *** 53,57 **** =head2 Introduction ! This module runs tests on remote URLs or local web files containing Perl/JSP/HTML/JavaScript/etc. and generates a detailed test report. This module can be used "as-is" or its functionality can be extended --- 53,57 ---- =head2 Introduction ! This module runs tests on remote URLs containing Perl/JSP/HTML/JavaScript/etc. and generates a detailed test report. This module can be used "as-is" or its functionality can be extended *************** *** 64,74 **** The test specifications can be read from a parameter file in wtscript ! format 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 test results can be displayed on the terminal, directed to a file, ! stored in a scalar variable. The test results can also be emailed. ! The report can be modified and extended using report plugins. Each URL/web file is tested by fetching it from the web server using a --- 64,71 ---- The test specifications can be read from a parameter file in wtscript ! format or input as method arguments. The test results can be ! displayed on the terminal, directed to a file, stored in a scalar ! variable. The test results can also be emailed. The report can be ! modified and extended using report plugins. Each URL/web file is tested by fetching it from the web server using a *************** *** 81,85 **** server response time. ! Data flow for C<HTTP::WebTest> using a remote URL: -------------- ------------- --- 78,82 ---- server response time. ! Data flow for C<HTTP::WebTest>: -------------- ------------- *************** *** 99,131 **** ------------ ! Data flow diagram for C<HTTP::WebTest> using a local web file: ! ! -------------- --------------------- ! | | | | ! | Input | | Web page code | ! | parameters | | (Perl/HTML/etc.) | ! | | | | ! -------------- --------------------- ! | | ! | ----------------------------- ! | | ! V V ------------------------ ! ------------- | | ! | |---------->| Temporary Apache | ! | WebTest | | directories (htdocs, | ! | |<----------| conf, logs) | ! ------------- | | ! | ^ ------------------------ ! | | | ^ ! V | V | ! ------------ ---------------------- ! | | request | | ! | HTTP |------------>| Temporary local | ! | user | | instance of Apache | ! | agent |<------------| | ! | | response ---------------------- ! ------------ ! ! =head2 Getting Started This module has complex functionality, but using it to run simple --- 96,100 ---- ------------ ! =head2 Getting started This module has complex functionality, but using it to run simple *************** *** 321,330 **** =head3 Examples of wtscript files ! The parameters below specify tests of a local file and a remote URL. ! The tests specified by the C<text_forbid> parameter apply to both the ! "MyCompany home page" and the "Yahoo home page" tests. Hence, if ! either returned page contains one of the case-insensitive strings in ! text_forbid, the test fails. If any test fails or the fetch of the URL ! fails, an e-mail will be sent to te...@my.... --- 290,299 ---- =head3 Examples of wtscript files ! The parameters below specify tests. The tests specified by the ! C<text_forbid> parameter apply to both the "MyCompany home page" and ! the "Yahoo home page" tests. Hence, if either returned page contains ! one of the case-insensitive strings in text_forbid, the test fails. ! If any test fails or the fetch of the URL fails, an e-mail will be ! sent to te...@my.... *************** *** 355,384 **** end_test - The parameters below specify a test of a local file containing Perl - code using the L<Apache::ASP|Apache::ASP> module. The C<includes.htm> - file requires five include files and two Perl modules, which are - copied using the C<include_file_path> parameter. - - apache_exec = /usr/sbin/apache - ignore_case = yes - include_file_path = ( footer.inc => htdocs/apps/myapp/inc - header.inc => htdocs/apps/myapp/inc - head.inc => htdocs/apps/myapp/inc - go.script => htdocs/shared/includes - go.include => htdocs/shared/includes - ../utils/DBconn.pm => lib/perl/utils - ../utils/Window.pm => lib/perl/utils - ) - - test_name = includes.htm - file_path = ( includes.htm => apps/myapp ) - min_bytes = 33000 - max_bytes = 35000 - text_require = ( input type=hidden name=control value= ) - text_forbid = ( Premature end of script headers - an error occurred while processing this directive - ) - end_test - =head2 Calling HTTP::WebTest from a Perl program --- 324,327 ---- *************** *** 386,393 **** can be defined as an array of hashes. ! Each hash in the array defines tests for one URL or local web file. Keys ! in the hashes are test parameter names and values in hashes are values of ! test parameters. Optional global test parameters can be ! passed in a hash passed as the second argument. Subroutine references can be specified instead of test parameter values. --- 329,336 ---- can be defined as an array of hashes. ! Each hash in the array defines tests for one URL. Keys in the hashes ! are test parameter names and values in hashes are values of test ! parameters. Optional global test parameters can be passed in a hash ! passed as the second argument. Subroutine references can be specified instead of test parameter values. *************** *** 441,445 **** =head1 PLUGIN MODULES ! =head2 Core Plugin Modules C<HTTP::WebTest> is implemented in a modular structure that allows programmers --- 384,388 ---- =head1 PLUGIN MODULES ! =head2 Core plugin modules C<HTTP::WebTest> is implemented in a modular structure that allows programmers *************** *** 451,458 **** =over 4 - =item L<HTTP::WebTest::Plugin::Apache|HTTP::WebTest::Plugin::Apache> - - This plugin supports testing web files using a local instance of Apache. - =item L<HTTP::WebTest::Plugin::ContentSizeTest|HTTP::WebTest::Plugin::ContentSizeTest> --- 394,397 ---- *************** *** 493,497 **** summarized below in the section L<TEST PARAMETERS|TEST PARAMETERS>. ! =head2 Other Plugin Modules Bundled With HTTP::WebTest Following plugin modules come with HTTP::WebTest but they are not --- 432,436 ---- summarized below in the section L<TEST PARAMETERS|TEST PARAMETERS>. ! =head2 Other plugin modules bundled with HTTP::WebTest Following plugin modules come with HTTP::WebTest but they are not *************** *** 526,530 **** is summarized below in section L<TEST PARAMETERS|TEST PARAMETERS>. ! =head2 Writing Plugin Modules See L<perldoc HTTP::WebTest::Plugins|HTTP::WebTest::Plugins> for --- 465,482 ---- is summarized below in section L<TEST PARAMETERS|TEST PARAMETERS>. ! =head2 Plugin modules released separately from HTTP::WebTest ! ! Following additional C<HTTP::WebTest> plugins are avialable separately ! from CPAN. ! ! =over 4 ! ! =item L<HTTP::WebTest::Plugin::Apache|HTTP::WebTest::Plugin::Apache> ! ! This plugin supports testing web files using a local instance of Apache. ! ! =back ! ! =head2 Writing plugin modules See L<perldoc HTTP::WebTest::Plugins|HTTP::WebTest::Plugins> for *************** *** 1425,1434 **** This module have been tested only on Unix (e.g., Solaris, Linux, AIX, ! etc.) but it should work on Win32 systems. (Exception: local file tests ! don't work on Win32 systems.) The module's HTTP requests time out after 3 minutes (the default value ! for L<LWP::UserAgent|LWP::UserAgent>). If the C<file_path> parameter is ! specified, Apache must be installed. If you want to test https:// web sites you may have to install --- 1377,1384 ---- This module have been tested only on Unix (e.g., Solaris, Linux, AIX, ! etc.) but it should work on Win32 systems. The module's HTTP requests time out after 3 minutes (the default value ! for L<LWP::UserAgent|LWP::UserAgent>). If you want to test https:// web sites you may have to install |
From: Ilya M. <m_...@us...> - 2002-10-19 23:01:00
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP In directory usw-pr-cvs1:/tmp/cvs-serv25809/lib/HTTP Modified Files: WebTest.pm.in Log Message: Updated docs (removed local testing mode) Index: WebTest.pm.in =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest.pm.in,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** WebTest.pm.in 19 Oct 2002 22:37:54 -0000 1.23 --- WebTest.pm.in 19 Oct 2002 23:00:55 -0000 1.24 *************** *** 5,9 **** package HTTP::WebTest; ! $VERSION = '1.99_09'; # workaround for warning caused by underscore char in $VERSION $VERSION = eval $VERSION; --- 5,9 ---- package HTTP::WebTest; ! $VERSION = '2.00'; # workaround for warning caused by underscore char in $VERSION $VERSION = eval $VERSION; *************** *** 14,18 **** =head1 NAME ! HTTP::WebTest - Test remote URLs or local web files =head1 SYNOPSIS --- 14,18 ---- =head1 NAME ! HTTP::WebTest - Testing web applications and static web content =head1 SYNOPSIS *************** *** 32,36 **** =head2 Introduction ! This module runs tests on remote URLs or local web files containing Perl/JSP/HTML/JavaScript/etc. and generates a detailed test report. This module can be used "as-is" or its functionality can be extended --- 32,36 ---- =head2 Introduction ! This module runs tests on remote URLs containing Perl/JSP/HTML/JavaScript/etc. and generates a detailed test report. This module can be used "as-is" or its functionality can be extended *************** *** 43,53 **** The test specifications can be read from a parameter file in wtscript ! format 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 test results can be displayed on the terminal, directed to a file, ! stored in a scalar variable. The test results can also be emailed. ! The report can be modified and extended using report plugins. Each URL/web file is tested by fetching it from the web server using a --- 43,50 ---- The test specifications can be read from a parameter file in wtscript ! format or input as method arguments. The test results can be ! displayed on the terminal, directed to a file, stored in a scalar ! variable. The test results can also be emailed. The report can be ! modified and extended using report plugins. Each URL/web file is tested by fetching it from the web server using a *************** *** 60,64 **** server response time. ! Data flow for C<HTTP::WebTest> using a remote URL: -------------- ------------- --- 57,61 ---- server response time. ! Data flow for C<HTTP::WebTest>: -------------- ------------- *************** *** 78,110 **** ------------ ! Data flow diagram for C<HTTP::WebTest> using a local web file: ! ! -------------- --------------------- ! | | | | ! | Input | | Web page code | ! | parameters | | (Perl/HTML/etc.) | ! | | | | ! -------------- --------------------- ! | | ! | ----------------------------- ! | | ! V V ------------------------ ! ------------- | | ! | |---------->| Temporary Apache | ! | WebTest | | directories (htdocs, | ! | |<----------| conf, logs) | ! ------------- | | ! | ^ ------------------------ ! | | | ^ ! V | V | ! ------------ ---------------------- ! | | request | | ! | HTTP |------------>| Temporary local | ! | user | | instance of Apache | ! | agent |<------------| | ! | | response ---------------------- ! ------------ ! ! =head2 Getting Started This module has complex functionality, but using it to run simple --- 75,79 ---- ------------ ! =head2 Getting started This module has complex functionality, but using it to run simple *************** *** 300,309 **** =head3 Examples of wtscript files ! The parameters below specify tests of a local file and a remote URL. ! The tests specified by the C<text_forbid> parameter apply to both the ! "MyCompany home page" and the "Yahoo home page" tests. Hence, if ! either returned page contains one of the case-insensitive strings in ! text_forbid, the test fails. If any test fails or the fetch of the URL ! fails, an e-mail will be sent to te...@my.... --- 269,278 ---- =head3 Examples of wtscript files ! The parameters below specify tests. The tests specified by the ! C<text_forbid> parameter apply to both the "MyCompany home page" and ! the "Yahoo home page" tests. Hence, if either returned page contains ! one of the case-insensitive strings in text_forbid, the test fails. ! If any test fails or the fetch of the URL fails, an e-mail will be ! sent to te...@my.... *************** *** 334,363 **** end_test - The parameters below specify a test of a local file containing Perl - code using the L<Apache::ASP|Apache::ASP> module. The C<includes.htm> - file requires five include files and two Perl modules, which are - copied using the C<include_file_path> parameter. - - apache_exec = /usr/sbin/apache - ignore_case = yes - include_file_path = ( footer.inc => htdocs/apps/myapp/inc - header.inc => htdocs/apps/myapp/inc - head.inc => htdocs/apps/myapp/inc - go.script => htdocs/shared/includes - go.include => htdocs/shared/includes - ../utils/DBconn.pm => lib/perl/utils - ../utils/Window.pm => lib/perl/utils - ) - - test_name = includes.htm - file_path = ( includes.htm => apps/myapp ) - min_bytes = 33000 - max_bytes = 35000 - text_require = ( input type=hidden name=control value= ) - text_forbid = ( Premature end of script headers - an error occurred while processing this directive - ) - end_test - =head2 Calling HTTP::WebTest from a Perl program --- 303,306 ---- *************** *** 365,372 **** can be defined as an array of hashes. ! Each hash in the array defines tests for one URL or local web file. Keys ! in the hashes are test parameter names and values in hashes are values of ! test parameters. Optional global test parameters can be ! passed in a hash passed as the second argument. Subroutine references can be specified instead of test parameter values. --- 308,315 ---- can be defined as an array of hashes. ! Each hash in the array defines tests for one URL. Keys in the hashes ! are test parameter names and values in hashes are values of test ! parameters. Optional global test parameters can be passed in a hash ! passed as the second argument. Subroutine references can be specified instead of test parameter values. *************** *** 420,424 **** =head1 PLUGIN MODULES ! =head2 Core Plugin Modules C<HTTP::WebTest> is implemented in a modular structure that allows programmers --- 363,367 ---- =head1 PLUGIN MODULES ! =head2 Core plugin modules C<HTTP::WebTest> is implemented in a modular structure that allows programmers *************** *** 430,437 **** =over 4 - =item L<HTTP::WebTest::Plugin::Apache|HTTP::WebTest::Plugin::Apache> - - This plugin supports testing web files using a local instance of Apache. - =item L<HTTP::WebTest::Plugin::ContentSizeTest|HTTP::WebTest::Plugin::ContentSizeTest> --- 373,376 ---- *************** *** 472,476 **** summarized below in the section L<TEST PARAMETERS|TEST PARAMETERS>. ! =head2 Other Plugin Modules Bundled With HTTP::WebTest Following plugin modules come with HTTP::WebTest but they are not --- 411,415 ---- summarized below in the section L<TEST PARAMETERS|TEST PARAMETERS>. ! =head2 Other plugin modules bundled with HTTP::WebTest Following plugin modules come with HTTP::WebTest but they are not *************** *** 505,509 **** is summarized below in section L<TEST PARAMETERS|TEST PARAMETERS>. ! =head2 Writing Plugin Modules See L<perldoc HTTP::WebTest::Plugins|HTTP::WebTest::Plugins> for --- 444,461 ---- is summarized below in section L<TEST PARAMETERS|TEST PARAMETERS>. ! =head2 Plugin modules released separately from HTTP::WebTest ! ! Following additional C<HTTP::WebTest> plugins are avialable separately ! from CPAN. ! ! =over 4 ! ! =item L<HTTP::WebTest::Plugin::Apache|HTTP::WebTest::Plugin::Apache> ! ! This plugin supports testing web files using a local instance of Apache. ! ! =back ! ! =head2 Writing plugin modules See L<perldoc HTTP::WebTest::Plugins|HTTP::WebTest::Plugins> for *************** *** 544,553 **** This module have been tested only on Unix (e.g., Solaris, Linux, AIX, ! etc.) but it should work on Win32 systems. (Exception: local file tests ! don't work on Win32 systems.) The module's HTTP requests time out after 3 minutes (the default value ! for L<LWP::UserAgent|LWP::UserAgent>). If the C<file_path> parameter is ! specified, Apache must be installed. If you want to test https:// web sites you may have to install --- 496,503 ---- This module have been tested only on Unix (e.g., Solaris, Linux, AIX, ! etc.) but it should work on Win32 systems. The module's HTTP requests time out after 3 minutes (the default value ! for L<LWP::UserAgent|LWP::UserAgent>). If you want to test https:// web sites you may have to install |
From: Ilya M. <m_...@us...> - 2002-10-19 22:38:02
|
Update of /cvsroot/http-webtest/HTTP-WebTest In directory usw-pr-cvs1:/tmp/cvs-serv16194a Modified Files: Makefile.PL MANIFEST .cvsignore Log Message: Removing Apache plugin from HTTP-WebTest (to be published as separate CPAN module) Index: Makefile.PL =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/Makefile.PL,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Makefile.PL 24 Sep 2002 20:21:10 -0000 1.10 --- Makefile.PL 19 Oct 2002 22:37:55 -0000 1.11 *************** *** 26,30 **** 'Test::More' => 0, 'URI' => 0 }, - realclean => { FILES => '.config' }, EXE_FILES => [ File::Spec->catfile(qw(bin wt)) ], AUTHOR => $AUTHOR, --- 26,29 ---- *************** *** 43,57 **** } - sub test { - my $self = shift; - - my $make = $self->SUPER::test(@_); - - # add dependencies for test targets - $make =~ s/(test(?:db)? :: )(.*)/$1test_config $2/g; - - return $make; - } - sub dist_core { my $self = shift; --- 42,45 ---- *************** *** 68,78 **** my $make = ''; - # verify standard input and output are attached to a terminal - if(-t STDIN and -t STDOUT) { - $make .= apache_dir_setup(); - - print STDOUT "\n"; - } - # add pod merge target my $webtest_pm = File::Spec->catfile(qw(lib HTTP WebTest.pm)); --- 56,59 ---- *************** *** 103,175 **** MAKE - # add test_config target (test and testdb targets depend on it) - my $test_config_pl = File::Spec->catfile(qw(scripts test_config.PL)); - $make .= <<MAKE; - - test_config: - \t\$(PERL) $test_config_pl .config - MAKE - - return $make; - } - - # asks if http-webtest directory should be installed and adds to - # makefile target to install http-webtest directory if required - sub apache_dir_setup { - my $apache_dir = undef; - - # verify that we don't run on Win32 system. Local web files - # test mode is not supported on that platform - if($^O ne 'MSWin32') { - while(1) { - print_prompt(<<TEXT); - - HTTP-WebTest requires installation of the http-webtest directory for - running local file tests. If you do not use local file tests you can - skip installation of this directory. - - Install http-webtest directory? [Y/n]: - TEXT - - my $response = <STDIN>; - chomp($response); - if($response =~ /^(?:y(?:es)?|)$/i) { - # user asked for directory installation - $apache_dir = '/usr/local/etc'; - - print_prompt(<<TEXT); - - Enter directory that will contain http-webtest directory. - - Directory? [$apache_dir]: - TEXT - - my $response = <STDIN>; - chomp($response); - $apache_dir = $response if $response; - last if -d $apache_dir; - print STDOUT <<TEXT; - - ERROR: $apache_dir is not a valid directory - TEXT - } else { - last; - } - } - } - - my $make = defined $apache_dir ? <<TEXT : ''; - - pure_install :: - \t-\@\$(CP) -r http-webtest $apache_dir - - TEXT - return $make; - } - - sub print_prompt { - my $text = shift; - chomp $text; - print STDOUT $text, ' '; } --- 84,87 ---- Index: MANIFEST =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/MANIFEST,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** MANIFEST 24 Sep 2002 21:15:23 -0000 1.25 --- MANIFEST 19 Oct 2002 22:37:55 -0000 1.26 *************** *** 17,21 **** lib/HTTP/WebTest/Parser.pm lib/HTTP/WebTest/Plugin.pm - lib/HTTP/WebTest/Plugin/Apache.pm lib/HTTP/WebTest/Plugin/Click.pm lib/HTTP/WebTest/Plugin/ContentSizeTest.pm --- 17,20 ---- *************** *** 39,47 **** scripts/make_readme.PL scripts/pod_merge.PL - scripts/test_config.PL t/01-api.t t/02-generic.t t/03-proxy.t - t/04-apache.t t/05-report.t t/06-parser.t --- 38,44 ---- *************** *** 68,80 **** t/real.wt.in t/simple.wt - t/test.out/apache1 - t/test.out/apache2 - t/test.out/apache3 - t/test.out/apache4 - t/test.out/apache5 - t/test.out/apache6 - t/test.out/apache7 - t/test.out/apache8 - t/test.out/apache9 t/test.out/auth t/test.out/borked1.err --- 65,68 ---- Index: .cvsignore =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/.cvsignore,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** .cvsignore 15 Jun 2002 21:49:51 -0000 1.3 --- .cvsignore 19 Oct 2002 22:37:55 -0000 1.4 *************** *** 1,3 **** - .config wt blib --- 1,2 ---- |
From: Ilya M. <m_...@us...> - 2002-10-19 22:38:01
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest In directory usw-pr-cvs1:/tmp/cvs-serv16194a/lib/HTTP/WebTest Modified Files: API.pm Log Message: Removing Apache plugin from HTTP-WebTest (to be published as separate CPAN module) Index: API.pm =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/API.pm,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** API.pm 18 Oct 2002 21:01:23 -0000 1.24 --- API.pm 19 Oct 2002 22:37:54 -0000 1.25 *************** *** 409,414 **** my @plugins = (); ! for my $sn_package (qw(Loader ! SetRequest Cookies Apache StatusTest TextMatchTest ContentSizeTest ResponseTimeTest --- 409,413 ---- my @plugins = (); ! for my $sn_package (qw(Loader SetRequest Cookies StatusTest TextMatchTest ContentSizeTest ResponseTimeTest |
From: Ilya M. <m_...@us...> - 2002-10-19 22:38:01
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Plugin In directory usw-pr-cvs1:/tmp/cvs-serv16194a/lib/HTTP/WebTest/Plugin Removed Files: Apache.pm Log Message: Removing Apache plugin from HTTP-WebTest (to be published as separate CPAN module) --- Apache.pm DELETED --- |
From: Ilya M. <m_...@us...> - 2002-10-19 22:38:01
|
Update of /cvsroot/http-webtest/HTTP-WebTest/scripts In directory usw-pr-cvs1:/tmp/cvs-serv16194a/scripts Modified Files: pod_merge.PL Removed Files: test_config.PL Log Message: Removing Apache plugin from HTTP-WebTest (to be published as separate CPAN module) Index: pod_merge.PL =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/scripts/pod_merge.PL,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pod_merge.PL 20 Jun 2002 18:18:40 -0000 1.3 --- pod_merge.PL 19 Oct 2002 22:37:54 -0000 1.4 *************** *** 72,81 **** $sections{params} = join '', @sections; - # find Apache Directory and Files section - my $apache_pm = File::Spec->catfile($sourcedir, qw(HTTP WebTest Plugin Apache.pm)); - $sections{apache} = file_scan($apache_pm, 'apache'); - # replace sections in out file ! for my $type (qw(params apache)) { my $regex = section_replace_re($type); $merged_data =~ s/$regex/$sections{$type}/xs; --- 72,77 ---- $sections{params} = join '', @sections; # replace sections in out file ! for my $type (qw(params)) { my $regex = section_replace_re($type); $merged_data =~ s/$regex/$sections{$type}/xs; --- test_config.PL DELETED --- |
From: Ilya M. <m_...@us...> - 2002-10-19 22:38:01
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP In directory usw-pr-cvs1:/tmp/cvs-serv16194a/lib/HTTP Modified Files: WebTest.pm.in WebTest.pm Log Message: Removing Apache plugin from HTTP-WebTest (to be published as separate CPAN module) Index: WebTest.pm.in =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest.pm.in,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** WebTest.pm.in 11 Oct 2002 21:35:07 -0000 1.22 --- WebTest.pm.in 19 Oct 2002 22:37:54 -0000 1.23 *************** *** 541,552 **** =cut - =for pod_merge replace apache - - Content of this section should be autogenerated from POD documentation - in Apache plugin module. Everything from this point till next =cut - will be replaced with autogenerated documentation. - - =cut - =head1 RESTRICTIONS / BUGS --- 541,544 ---- Index: WebTest.pm =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest.pm,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** WebTest.pm 18 Oct 2002 21:09:30 -0000 1.28 --- WebTest.pm 19 Oct 2002 22:37:55 -0000 1.29 *************** *** 3,7 **** # lib/HTTP/WebTest.pm.in # lib/HTTP/WebTest.pm.in - # lib/HTTP/WebTest/Plugin/Apache.pm # lib/HTTP/WebTest/Plugin/Click.pm # lib/HTTP/WebTest/Plugin/ContentSizeTest.pm --- 3,6 ---- *************** *** 566,636 **** C<yes> - =head2 apache_dir - - I<GLOBAL PARAMETER> - - Absolute or relative path name of directory containing Apache files. - See the L<APACHE DIRECTORY AND FILES|/"APACHE DIRECTORY AND FILES"> - section. This parameter is ignored unless the C<file_path> parameter - is specified. - - =head3 Default value - - C</usr/local/etc/http-webtest> - - =head2 apache_exec - - I<GLOBAL PARAMETER> - - Absolute or relative path name of Apache executable. This command can - be in your C<$PATH>. This parameter is ignored unless the - C<file_path> parameter is specified. - - =head3 Default value - - C</usr/sbin/apache> - - =head2 apache_loglevel - - I<GLOBAL PARAMETER> - - Apache logging level. If you use a level less than C<warn> (i.e., - C<debug>, C<info>, or C<notice>), the program may generate irrelevant - errors. This parameter is ignored unless the C<file_path> parameter - is specified. See also the C<ignore_error_log> parameter. - - =head3 Allowed values - - C<debug>, C<info>, C<notice>, C<warn>, C<error>, C<crit>, C<alert>, - C<emerg> - - =head3 Default value - - C<warn> - - =head2 apache_max_wait - - I<GLOBAL PARAMETER> - - Maximum number of seconds to wait for Apache to start. This parameter - is ignored unless the C<file_path> parameter is specified. - - =head3 Default value - - C<60> - - =head2 apache_options - - I<GLOBAL PARAMETER> - - Additional Apache command line options. Many of the options cause - Apache to exit immediately after starting, so the web page tests will - not run. This parameter is ignored unless the C<file_path> parameter - is specified. - - =head3 Allowed values - - See Apache documentation - =head2 auth --- 565,568 ---- *************** *** 1003,1019 **** It marks the end of test block. - =head2 error_log - - I<GLOBAL PARAMETER> - - The pathname of a local web server error log. The module counts the - number of lines in the error log before and after each request. If - the number of lines increases, an error is counted and the additional - lines are listed in the report. This argument should be used only - when the local web server is running in single-process mode. - Otherwise, requests generated by other processes/users may add lines - to the error log that are not related to the requests generated by - this module. See also parameter C<ignore_error_log>. - =head2 fh_out --- 935,938 ---- *************** *** 1027,1046 **** as arguments from a calling Perl script. - =head2 file_path - - If L<HTTP::WebTest|HTTP::WebTest> encounters parameter C<file_path> it - switches in local web file test mode. In local web file test mode it - launches an instance of Apache daemon, copies local test file(s) under - DocumentRoot of this Apache and performs test checks against it. - - =head3 Allowed values - - Two-element list. First element is the file to test, either an - absolute or a relative pathname. Second element is the subdirectory - pathname, relative to the Apache htdocs directory, to copy the file - to. The copied file will have the same basename as the first element - and the relative pathname of the second element. To copy the file - directly to the htdocs directory, use a pathname of C<.> or C<./.>. - =head2 form_name --- 946,949 ---- *************** *** 1089,1134 **** C<no> - =head2 ignore_error_log - - Option to ignore any errors found in the Apache error log. The - default behavior is to flag an error if the fetch causes any errors to - be added to the error log and echo the errors to the program output. - This check is available only if C<error_log> parameter is specified. - See also the C<apache_loglevel> parameter. - - =head3 Allowed values - - C<yes>, C<no> - - =head3 Default value - - C<no> - - =head2 include_file_path - - List with an even number of elements. Odd-numbered elements are files - to copy to the the temporary Apache directory before running the - tests. These files can be specified using either an absolute or a - relative pathname. Even-numbered elements are the subdirectory - pathname, relative to the Apache ServerRoot directory, to copy the - corresponding file to. The copied file will have the same basename as - the odd-numbered element and the relative pathname of the - corresponding even-numbered element. To copy the file directly to the - ServerRoot directory, use a pathname of C<.> or C<./.>. - - For example: - - include_file_path = (/home/tester/inc/header.inc => htdocs/includes) - - will copy the file to htdocs/includes/header.inc. - - This parameter is also useful for adding Perl modules that are needed - by the web page specified by the file_path parameter. For example: - - include_file_path = ( ../apps/myapp/DBconn.pm => lib/perl/apps ) - - will copy the Perl module DBconn.pm to a directory that is in the - Perl @INC array. - =head2 mail --- 992,995 ---- *************** *** 1558,1603 **** where C<NN> is version number of HTTP-WebTest. - - =cut - - - - =head1 APACHE DIRECTORY AND FILES - - A tree of directories with templates of Apache config files is - required to run local web file tests. - - The C<apache_dir> parameter must be set to the name of a directory - that contains the subdirectories C<conf>, C<logs> and C<htdocs>. The - C<conf> subdirectory must contain a file named C<httpd.conf-dist>. - The C<htdocs> subdirectory must contain a subdirectory named - C<webtest> that contains a file named C<is_apache_responding.html>. - If your installation of Apache has the Perl module - L<Apache::ASP|Apache::ASP> configured, the C<apache_dir> directory - must also contain a subdirectory named C<asp_tmp>. - - The file C<httpd.conf-dist> is used as template for the Apache config - file. It contains tags which are replaced with the values needed by - the Apache server that the program starts at runtime. - - =over 4 - - =item * Please_do_not_modify_PORT - - To be replaced with port number on which Apache runs during tests. - - =item * Please_do_not_modify_HOST_NAME - - To be replace with Apache host name. - - =item * Please_do_not_modify_SERVER_ROOT - - To be replaced with Apache server root. - - =item * Please_do_not_modify_LOG_LEVEL - - To be replaced with Apache log level. - - =back =cut --- 1419,1422 ---- |
From: Ilya M. <m_...@us...> - 2002-10-19 22:38:01
|
Update of /cvsroot/http-webtest/HTTP-WebTest/t/test.out In directory usw-pr-cvs1:/tmp/cvs-serv16194a/t/test.out Removed Files: apache9 apache8 apache7 apache6 apache5 apache4 apache3 apache2 apache1 Log Message: Removing Apache plugin from HTTP-WebTest (to be published as separate CPAN module) --- apache9 DELETED --- --- apache8 DELETED --- --- apache7 DELETED --- --- apache6 DELETED --- --- apache5 DELETED --- --- apache4 DELETED --- --- apache3 DELETED --- --- apache2 DELETED --- --- apache1 DELETED --- |
From: Ilya M. <m_...@us...> - 2002-10-19 22:38:01
|
Update of /cvsroot/http-webtest/HTTP-WebTest/t In directory usw-pr-cvs1:/tmp/cvs-serv16194a/t Modified Files: config.pl Removed Files: 04-apache.t Log Message: Removing Apache plugin from HTTP-WebTest (to be published as separate CPAN module) Index: config.pl =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/t/config.pl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** config.pl 24 Jan 2002 12:26:18 -0000 1.1.1.1 --- config.pl 19 Oct 2002 22:37:54 -0000 1.2 *************** *** 12,17 **** use vars qw(%CONFIG $HOSTNAME $PORT $URL $APACHE_EXEC); - read_config(); - # hostname of test webserver $HOSTNAME = $ENV{TEST_HOSTNAME} || hostname; --- 12,15 ---- *************** *** 23,36 **** # filename of apache executable file $APACHE_EXEC = $CONFIG{APACHE_EXEC}; - - sub read_config { - unless(defined do '.config') { - if($!) { - die "Can't read file '.config': $!"; - } else { - die $@; - } - } - } 1; --- 21,24 ---- --- 04-apache.t DELETED --- |
From: Ilya M. <m_...@us...> - 2002-10-18 21:09:34
|
Update of /cvsroot/http-webtest/HTTP-WebTest In directory usw-pr-cvs1:/tmp/cvs-serv18261 Modified Files: README Log Message: Regenerated Index: README =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/README,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** README 22 Jun 2002 20:07:37 -0000 1.6 --- README 18 Oct 2002 21:09:31 -0000 1.7 *************** *** 80,86 **** This module have been tested only on Unix (e.g., Solaris, Linux, AIX, etc.) but it should work on Win32 systems. (Exception: local file tests ! don't work on Win32 systems.) The module's HTTP requests time out after 3 ! minutes (the default value for LWP::UserAgent). If the "file_path" ! parameter is specified, Apache must be installed. AUTHORS --- 80,92 ---- This module have been tested only on Unix (e.g., Solaris, Linux, AIX, etc.) but it should work on Win32 systems. (Exception: local file tests ! don't work on Win32 systems.) ! ! The module's HTTP requests time out after 3 minutes (the default value for ! LWP::UserAgent). If the "file_path" parameter is specified, Apache must be ! installed. ! ! If you want to test https:// web sites you may have to install additional ! modules to enable SSL support in LWP. In short you may have to install ! Crypt::SSLeay module. For details see README.SSL file in LWP distro. AUTHORS *************** *** 97,101 **** Please email bug reports, suggestions, questions, etc. to the SourceForge "HTTP::WebTest" maillist. You can sign up at ! http://lists.sourceforge.net/lists/listinfo/http-webtest-general. The email address is "htt...@li...". --- 103,107 ---- Please email bug reports, suggestions, questions, etc. to the SourceForge "HTTP::WebTest" maillist. You can sign up at ! http://lists.sourceforge.net/lists/listinfo/http-webtest-general . The email address is "htt...@li...". |
From: Ilya M. <m_...@us...> - 2002-10-18 21:09:33
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP In directory usw-pr-cvs1:/tmp/cvs-serv18261/lib/HTTP Modified Files: WebTest.pm Log Message: Regenerated Index: WebTest.pm =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest.pm,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** WebTest.pm 22 Aug 2002 09:10:10 -0000 1.27 --- WebTest.pm 18 Oct 2002 21:09:30 -0000 1.28 *************** *** 423,427 **** my $tests = [ ! { name => 'Yahoo home page', url => 'http://www.yahoo.com', text_require => [ '<a href=r/qt>Quotations</a>...<br>' ], --- 423,427 ---- my $tests = [ ! { test_name => 'Yahoo home page', url => 'http://www.yahoo.com', text_require => [ '<a href=r/qt>Quotations</a>...<br>' ], *************** *** 437,440 **** --- 437,441 ---- }; + my $webtest = new HTTP::WebTest; $webtest->run_tests($tests, $params); *************** *** 1330,1335 **** C<multipart/form-data> content type used for C<Form-based File Upload> as specified in RFC 1867. Each parameter with list value is treated ! as file part specification specification with the following ! interpretation: ( FILE, FILENAME, HEADER => VALUE... ) --- 1331,1335 ---- C<multipart/form-data> content type used for C<Form-based File Upload> as specified in RFC 1867. Each parameter with list value is treated ! as file part specification with the following interpretation: ( FILE, FILENAME, HEADER => VALUE... ) *************** *** 1353,1356 **** --- 1353,1358 ---- Additional optional headers for file part. + =back + Example (wtscript file): *************** *** 1363,1368 **** and reported under name C<myfile.txt>. - =back - =head2 pauth --- 1365,1368 ---- *************** *** 1414,1417 **** --- 1414,1430 ---- See also the C<text_require> and C<ignore_case> parameters. + =head2 relative_urls + + If set to C<yes> than C<HTTP-WebTest> supports relative URLs. See + test parameter C<url> for more information. + + =head3 Allowed values + + C<yes>, C<no> + + =head3 Default value + + C<no> + =head2 send_cookies *************** *** 1523,1528 **** =head2 url ! URL to test. If schema part of URL is omitted (i.e. URL doesn't start ! with C<http://>, C<ftp://>, etc) then C<http://> is implied. =head2 user_agent --- 1536,1549 ---- =head2 url ! URL to test. ! ! If test parameter C<relative_urls> is set to C<yes> than URL for each ! test is treated as relative to the URL in the previous test. URL in ! the first test is treated as relative to C<http://localhost>. ! ! If test parameter C<relative_urls> is set to C<no> than each URL is ! treated as absolute. In this case if schema part of URL is omitted ! (i.e. URL doesn't start with C<http://>, C<ftp://>, etc) then ! C<http://> is implied. =head2 user_agent *************** *** 1587,1594 **** --- 1608,1621 ---- etc.) but it should work on Win32 systems. (Exception: local file tests don't work on Win32 systems.) + The module's HTTP requests time out after 3 minutes (the default value for L<LWP::UserAgent|LWP::UserAgent>). If the C<file_path> parameter is specified, Apache must be installed. + If you want to test https:// web sites you may have to install + additional modules to enable SSL support in L<LWP>. In short you may + have to install L<Crypt::SSLeay> module. For details see README.SSL + file in L<LWP> distro. + =head1 AUTHORS *************** *** 1607,1611 **** C<HTTP::WebTest> maillist. You can sign up at ! http://lists.sourceforge.net/lists/listinfo/http-webtest-general. The email address is C<htt...@li...>. --- 1634,1638 ---- C<HTTP::WebTest> maillist. You can sign up at ! http://lists.sourceforge.net/lists/listinfo/http-webtest-general . The email address is C<htt...@li...>. |
From: Ilya M. <m_...@us...> - 2002-10-18 21:02:48
|
Update of /cvsroot/http-webtest/HTTP-WebTest In directory usw-pr-cvs1:/tmp/cvs-serv15942 Modified Files: Changes Log Message: Updated Index: Changes =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/Changes,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** Changes 27 Sep 2002 19:54:25 -0000 1.56 --- Changes 18 Oct 2002 21:02:45 -0000 1.57 *************** *** 17,20 **** --- 17,23 ---- * Fixed some minor documentation bugs. Thanks to William McKee. + * Allow to use $webtest->last_xxx method calls after running test + sequence with $webtest->run_tests. Thanks to Kevin Baker for patch. + 1.99_09 Thu Aug 22 2002 |
From: Ilya M. <m_...@us...> - 2002-10-18 21:02:47
|
Update of /cvsroot/http-webtest/HTTP-WebTest/t In directory usw-pr-cvs1:/tmp/cvs-serv15942/t Modified Files: 01-api.t Log Message: Updated Index: 01-api.t =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/t/01-api.t,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** 01-api.t 7 Jun 2002 08:57:50 -0000 1.7 --- 01-api.t 18 Oct 2002 21:02:44 -0000 1.8 *************** *** 16,20 **** use vars qw($HOSTNAME $PORT $URL); ! BEGIN { plan tests => 14 } # init test --- 16,20 ---- use vars qw($HOSTNAME $PORT $URL); ! BEGIN { plan tests => 15 } # init test *************** *** 130,133 **** --- 130,144 ---- ok($WEBTEST->num_fail == 2); ok($WEBTEST->num_succeed == 1); + } + + # 15: test last_test after running $WEBTEST->run_tests + { + my $tests = [ { url => abs_url($URL, '/test-file1') }, + { url => abs_url($URL, '/doesnt-exist') } ]; + + my $output = ''; + + $WEBTEST->run_tests($tests, { output_ref => \$output }); + ok($WEBTEST->last_test->request->uri eq abs_url($URL, '/doesnt-exist')); } |
From: Ilya M. <m_...@us...> - 2002-10-18 21:01:30
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest In directory usw-pr-cvs1:/tmp/cvs-serv15368 Modified Files: API.pm Log Message: Do not undef last_test when finishing test sequence Index: API.pm =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/API.pm,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** API.pm 24 Sep 2002 21:10:20 -0000 1.23 --- API.pm 18 Oct 2002 21:01:23 -0000 1.24 *************** *** 132,138 **** } - # reset last test object - $self->last_test(undef); - # end tests hook for my $plugin (@{$self->plugins}) { --- 132,135 ---- |
From: Ilya M. <m_...@us...> - 2002-10-11 21:35:38
|
Update of /cvsroot/http-webtest/HTTP-WebTest In directory usw-pr-cvs1:/tmp/cvs-serv28794 Modified Files: INSTALL Log Message: Added docs on SSL support Index: INSTALL =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/INSTALL,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** INSTALL 24 Sep 2002 20:19:34 -0000 1.6 --- INSTALL 11 Oct 2002 21:35:36 -0000 1.7 *************** *** 13,16 **** --- 13,23 ---- * Time::HiRes (is included in Perl 5.8.0 and later) + If you want SSL support you need one of these modules + + * Crypt::SSLeay + * IO::Socket::SSL + + See README.SSL file in libwww distro for details. + If you want to run test suite ('make test') you need also |
From: Ilya M. <m_...@us...> - 2002-10-11 21:35:13
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP In directory usw-pr-cvs1:/tmp/cvs-serv28619 Modified Files: WebTest.pm.in Log Message: Added docs on SSL support Index: WebTest.pm.in =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest.pm.in,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** WebTest.pm.in 11 Oct 2002 21:16:58 -0000 1.21 --- WebTest.pm.in 11 Oct 2002 21:35:07 -0000 1.22 *************** *** 554,560 **** --- 554,566 ---- etc.) but it should work on Win32 systems. (Exception: local file tests don't work on Win32 systems.) + The module's HTTP requests time out after 3 minutes (the default value for L<LWP::UserAgent|LWP::UserAgent>). If the C<file_path> parameter is specified, Apache must be installed. + + If you want to test https:// web sites you may have to install + additional modules to enable SSL support in L<LWP>. In short you may + have to install L<Crypt::SSLeay> module. For details see README.SSL + file in L<LWP> distro. =head1 AUTHORS |
From: Ilya M. <m_...@us...> - 2002-10-11 21:34:17
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/Bundle/HTTP In directory usw-pr-cvs1:/tmp/cvs-serv28428 Modified Files: WebTest.pm Log Message: Updated Index: WebTest.pm =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/Bundle/HTTP/WebTest.pm,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** WebTest.pm 19 Jun 2002 10:28:21 -0000 1.3 --- WebTest.pm 11 Oct 2002 21:34:14 -0000 1.4 *************** *** 3,7 **** # $Id$ ! $VERSION = '0.01'; =head1 NAME --- 3,7 ---- # $Id$ ! $VERSION = '0.02'; =head1 NAME *************** *** 19,23 **** --- 19,27 ---- CGI::Cookie + Crypt::SSLeay - SSL support + File::Temp + + HTTP::WebTest LWP |
From: Ilya M. <m_...@us...> - 2002-10-11 21:17:07
|
Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP In directory usw-pr-cvs1:/tmp/cvs-serv23196 Modified Files: WebTest.pm.in Log Message: Added space between URL and a dot to prevent dot to become a part of URL on pod2html converted pages. Index: WebTest.pm.in =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest.pm.in,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** WebTest.pm.in 27 Sep 2002 19:53:47 -0000 1.20 --- WebTest.pm.in 11 Oct 2002 21:16:58 -0000 1.21 *************** *** 574,578 **** C<HTTP::WebTest> maillist. You can sign up at ! http://lists.sourceforge.net/lists/listinfo/http-webtest-general. The email address is C<htt...@li...>. --- 574,578 ---- C<HTTP::WebTest> maillist. You can sign up at ! http://lists.sourceforge.net/lists/listinfo/http-webtest-general . The email address is C<htt...@li...>. |
From: Joe <joe...@us...> - 2002-10-09 22:15:19
|
Update of /cvsroot/http-webtest/HTTP-WebTest-Plugin-DateTest/lib/HTTP/WebTest/Plugin In directory usw-pr-cvs1:/tmp/cvs-serv30162/lib/HTTP/WebTest/Plugin Modified Files: DateTest.pm Log Message: Changed test result format and handling of time units Index: DateTest.pm =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest-Plugin-DateTest/lib/HTTP/WebTest/Plugin/DateTest.pm,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** DateTest.pm 12 Sep 2002 13:11:01 -0000 1.1.1.1 --- DateTest.pm 9 Oct 2002 22:15:16 -0000 1.2 *************** *** 7,11 **** use vars qw($VERSION); ! $VERSION = '0.90'; =head1 NAME --- 7,11 ---- use vars qw($VERSION); ! $VERSION = '0.91'; =head1 NAME *************** *** 157,165 **** } my $age = ($pgdate) ? $now - $pgdate : 'unknown'; ! my $ok = ($age ne 'unknown') && ($age < &_str2seconds($maxage)); push @results, $self->test_result($ok, ! sprintf("%s %s %s (%s < %s)", $start, $datestr, $end, &_seconds2str($age), $maxage) ); } --- 157,166 ---- } my $age = ($pgdate) ? $now - $pgdate : 'unknown'; ! my ($maxsecs, $units) = &_str2seconds($maxage); ! my $ok = ($age ne 'unknown') && ($age < $maxsecs); push @results, $self->test_result($ok, ! sprintf("%s %s %s (%s > %s)", $start, $datestr, $end, &_seconds2str($age, $units), $maxage) ); } *************** *** 170,177 **** } ! # look for trailing characters and interprete them as time unit ! sub _str2seconds { ! my $date = shift; ! my $TIMETAB = { s => 1, m => 60, --- 171,177 ---- } ! sub TIMETAB { ! my $units = shift || ''; ! my $tt = { s => 1, m => 60, *************** *** 179,210 **** d => 86400, w => 604800, ! }; if ($date =~ /^\s*([\-+0-9.]+)\s*([smhdwSMHDW]).*/) { ! $date = $1 * $TIMETAB->{lc($2)}; } else { $date =~ s/^\s*([\-+0-9.]+)\s*.*$/$1/g; } ! return ($date =~ /^[\-+0-9.]/) ? $date : 0; } # convert seconds into time string sub _seconds2str { ! my $date = shift; my $str = ''; my $frag = 0; ! if ($frag = int($date / 604800)) { $str .= "${frag}w "; ! $date -= $frag * 604800; } ! if ($frag = int($date / 86400)) { $str .= "${frag}d "; ! $date -= $frag * 86400; } ! $frag = int($date / 3600); $str .= sprintf "%02d:", $frag; ! $date -= $frag * 3600; ! $frag = int($date / 60); $str .= sprintf "%02d:", $frag; ! $date -= $frag * 60; $str .= sprintf "%02d", $date; return $str; --- 179,222 ---- d => 86400, w => 604800, ! }; ! return $tt->{$units}; ! } ! ! # look for trailing characters and interprete them as time unit ! sub _str2seconds { ! my $date = shift; ! my $units = ''; if ($date =~ /^\s*([\-+0-9.]+)\s*([smhdwSMHDW]).*/) { ! $units = lc($2); ! $date = $1 * &TIMETAB($units); } else { $date =~ s/^\s*([\-+0-9.]+)\s*.*$/$1/g; } ! $date = 0 unless ($date =~ /^[\-+0-9.]/); ! return wantarray ? ($date, $units) : $date; } # convert seconds into time string sub _seconds2str { ! my ($date, $units) = @_; ! if (&TIMETAB($units)) { ! return sprintf("%4.2f %s", $date/&TIMETAB($units), $units); ! } my $str = ''; my $frag = 0; ! if ($frag = int($date / &TIMETAB('w'))) { $str .= "${frag}w "; ! $date -= $frag * &TIMETAB('w'); } ! if ($frag = int($date / &TIMETAB('d'))) { $str .= "${frag}d "; ! $date -= $frag * &TIMETAB('d'); } ! $frag = int($date / &TIMETAB('h')); $str .= sprintf "%02d:", $frag; ! $date -= $frag * &TIMETAB('h'); ! $frag = int($date / &TIMETAB('m')); $str .= sprintf "%02d:", $frag; ! $date -= $frag * &TIMETAB('m'); $str .= sprintf "%02d", $date; return $str; |
From: Joe <joe...@us...> - 2002-10-09 22:15:19
|
Update of /cvsroot/http-webtest/HTTP-WebTest-Plugin-DateTest/t In directory usw-pr-cvs1:/tmp/cvs-serv30162/t Modified Files: 03_timeunits.t Log Message: Changed test result format and handling of time units Index: 03_timeunits.t =================================================================== RCS file: /cvsroot/http-webtest/HTTP-WebTest-Plugin-DateTest/t/03_timeunits.t,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** 03_timeunits.t 12 Sep 2002 13:11:01 -0000 1.1.1.1 --- 03_timeunits.t 9 Oct 2002 22:15:16 -0000 1.2 *************** *** 1,3 **** ! use Test::Simple tests => 16; use lib qw(./blib/lib); use HTTP::WebTest::Plugin::DateTest; --- 1,3 ---- ! use Test::Simple tests => 22; use lib qw(./blib/lib); use HTTP::WebTest::Plugin::DateTest; *************** *** 6,66 **** $date = '1'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 1, "1 second: '$date'"); $date = '1 minute'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 60, "60 seconds: '$date'"); $date = '1 hr'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 3600, "3600 seconds: '$date'"); $date = '1 day -- additional text ignored'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 86400, "86400 seconds: '$date'"); $date = ' 1 week -- leading space ignored'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 7*86400, "a week full of seconds: '$date'"); $date = '1 SECOND'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 1, "Case insensitive: '$date'"); $date = '1.5 hours'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 3600+1800, "Fractional value: '$date'"); $date = "\t1\thr"; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 3600, "Tabs as whitespace: '$date'"); $date = '1 dada -- nonsense units'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 86400, "Unit interpreted as 'd': '$date'"); $date = '10 foobar -- utmost nonsense units'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 10, "Default unit is 'seconds': '$date'"); $date = 'not numeric 10'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 0, "Zero: '$date'"); $date = '.5 minutes'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 30, "Fraction only: '$date'"); $date = '+10 secs'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 10, "Leading plus: '$date'"); $date = '-10 secs'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == -10, "Leading minus: '$date'"); $date = "\t+1.536 \t Hours (comment)\n1 more line"; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 3600*1.536, "Baroque format: '$date'"); # reverse: date string rendering --- 6,66 ---- $date = '1'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 1, "1 second: '$date' - returned '$ret'"); $date = '1 minute'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 60, "60 seconds: '$date' - returned '$ret'"); $date = '1 hr'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 3600, "3600 seconds: '$date' - returned '$ret'"); $date = '1 day -- additional text ignored'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 86400, "86400 seconds: '$date' - returned '$ret'"); $date = ' 1 week -- leading space ignored'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 7*86400, "a week full of seconds: '$date' - returned '$ret'"); $date = '1 SECOND'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 1, "Case insensitive: '$date' - returned '$ret'"); $date = '1.5 hours'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 3600+1800, "Fractional value: '$date' - returned '$ret'"); $date = "\t1\thr"; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 3600, "Tabs as whitespace: '$date' - returned '$ret'"); $date = '1 dada -- nonsense units'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 86400, "Unit interpreted as 'd': '$date' - returned '$ret'"); $date = '10 foobar -- utmost nonsense units'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 10, "Default unit is 'seconds': '$date' - returned '$ret'"); $date = 'not numeric 10'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 0, "Zero: '$date' - returned '$ret'"); $date = '.5 minutes'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 30, "Fraction only: '$date' - returned '$ret'"); $date = '+10 secs'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 10, "Leading plus: '$date' - returned '$ret'"); $date = '-10 secs'; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == -10, "Leading minus: '$date' - returned '$ret'"); $date = "\t+1.536 \t Hours (comment)\n1 more line"; $ret = &HTTP::WebTest::Plugin::DateTest::_str2seconds($date); ! ok($ret == 3600*1.536, "Baroque format: '$date' - returned '$ret'"); # reverse: date string rendering *************** *** 69,70 **** --- 69,93 ---- ok($ret eq '1w 4d 10:20:53', "$date seconds: '$ret'"); + $date = "987653"; # seconds + $ret = &HTTP::WebTest::Plugin::DateTest::_seconds2str($date, 'w'); + ok($ret eq '1.63 w', "$date seconds: '$ret'"); + + $date = "987653"; # seconds + $ret = &HTTP::WebTest::Plugin::DateTest::_seconds2str($date, 'd'); + ok($ret eq '11.43 d', "$date seconds: '$ret'"); + + $date = "7200"; # seconds + $ret = &HTTP::WebTest::Plugin::DateTest::_seconds2str($date, 'h'); + ok($ret eq '2.00 h', "$date seconds: '$ret'"); + + $date = "200"; # seconds + $ret = &HTTP::WebTest::Plugin::DateTest::_seconds2str($date, 'm'); + ok($ret eq '3.33 m', "$date seconds: '$ret'"); + + $date = "653.74"; # seconds + $ret = &HTTP::WebTest::Plugin::DateTest::_seconds2str($date, 's'); + ok($ret eq '653.74 s', "$date seconds: '$ret'"); + + $date = "653.74"; # seconds + ($ret) = &HTTP::WebTest::Plugin::DateTest::_seconds2str($date, 's'); + ok($ret eq '653.74 s', "List context: $date seconds: '$ret'"); |