Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest
In directory usw-pr-cvs1:/tmp/cvs-serv6771/lib/HTTP/WebTest
Modified Files:
Utils.pm TestResult.pm Test.pm ReportPlugin.pm Plugins.pod
Plugin.pm Parser.pm Cookies.pm Cookbook.pod API.pm
Log Message:
Minor POD docs tweaks
Index: Utils.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Utils.pm,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** Utils.pm 24 Jan 2002 12:26:28 -0000 1.1.1.1
--- Utils.pm 12 May 2002 13:35:35 -0000 1.2
***************
*** 50,54 ****
Creates anonymouse subroutine which can be used as accessor
! method. Such method can be used together with objects which are based
on blessed hashes.
--- 50,54 ----
Creates anonymouse subroutine which can be used as accessor
! method. Such method can be used together with objects which are based
on blessed hashes.
***************
*** 68,72 ****
If C<$optional_default_value> is a code reference uses values returned
! by its execution as default for created accessor method. Otherwise
uses C<$optional_default_value> as name of method which returns
default value for created accessor method.
--- 68,72 ----
If C<$optional_default_value> is a code reference uses values returned
! by its execution as default for created accessor method. Otherwise
uses C<$optional_default_value> as name of method which returns
default value for created accessor method.
***************
*** 198,202 ****
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 198,202 ----
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
Index: TestResult.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/TestResult.pm,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** TestResult.pm 24 Jan 2002 12:26:24 -0000 1.1.1.1
--- TestResult.pm 12 May 2002 13:35:35 -0000 1.2
***************
*** 22,26 ****
=head1 DESCRIPTION
! Objects of this class represent test results. Test results are
basicaly C<ok>/C<not ok> and some attached commentary.
--- 22,26 ----
=head1 DESCRIPTION
! Objects of this class represent test results. Test results are
basicaly C<ok>/C<not ok> and some attached commentary.
***************
*** 69,73 ****
=head3 Returns
! True if test is successful. False otherwise.
=cut
--- 69,73 ----
=head3 Returns
! True if test is successful. False otherwise.
=cut
***************
*** 87,91 ****
*comment = make_access_method('COMMENT');
! # this method is used to overload 'bool' operation. 'ok' can't be used
# directly because method which is overloads operation is called with
# some additional arguments which doesn't play nice with accessor
--- 87,91 ----
*comment = make_access_method('COMMENT');
! # this method is used to overload 'bool' operation. 'ok' can't be used
# directly because method which is overloads operation is called with
# some additional arguments which doesn't play nice with accessor
***************
*** 95,99 ****
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 95,99 ----
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
Index: Test.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Test.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Test.pm 28 Jan 2002 06:32:02 -0000 1.2
--- Test.pm 12 May 2002 13:35:35 -0000 1.3
***************
*** 31,35 ****
=head1 DESCRIPTION
! Objects of this class represent tests. They store both test params and
test results.
--- 31,35 ----
=head1 DESCRIPTION
! Objects of this class represent tests. They store both test params and
test results.
***************
*** 156,160 ****
Tries to convert test definition in some form into
! C<HTTP::WebTest::Test> object. Currenlty supports test defintion in
form of C<HTTP::WebTest::Test> object (it is just passed throw) or in
form of hash reference:
--- 156,160 ----
Tries to convert test definition in some form into
! C<HTTP::WebTest::Test> object. Currenlty supports test defintion in
form of C<HTTP::WebTest::Test> object (it is just passed throw) or in
form of hash reference:
***************
*** 196,200 ****
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 196,200 ----
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
Index: ReportPlugin.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/ReportPlugin.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ReportPlugin.pm 2 Feb 2002 04:08:19 -0000 1.2
--- ReportPlugin.pm 12 May 2002 13:35:35 -0000 1.3
***************
*** 13,21 ****
=head1 DESCRIPTION
! This is subclass of
! L<HTTP::WebTest|HTTP::WebTest::Plugin>. L<HTTP::WebTest|HTTP::WebTest>
! report plugin classes can subclass this class. It handles some test
! parameters common to report plugins by providing implementation of
! method C<print>. See below.
=cut
--- 13,20 ----
=head1 DESCRIPTION
! This is subclass of L<HTTP::WebTest|HTTP::WebTest::Plugin>.
! L<HTTP::WebTest|HTTP::WebTest> report plugin classes can subclass this
! class. It handles some test parameters common to report plugins by
! providing implementation of method C<print>. See below.
=cut
***************
*** 37,41 ****
I<GLOBAL PARAMETER>
! A reference on scalar which accumulates text of test report. If this
test parameter is specified then value of test parameter C<fh_out> is
ignore.
--- 36,40 ----
I<GLOBAL PARAMETER>
! A reference on scalar which accumulates text of test report. If this
test parameter is specified then value of test parameter C<fh_out> is
ignore.
***************
*** 49,53 ****
A filehandle (or anything else that supports C<print>) to use for test
! report output. This parameter is ignored if test parameter
C<output_ref> is specified also.
--- 48,52 ----
A filehandle (or anything else that supports C<print>) to use for test
! report output. This parameter is ignored if test parameter
C<output_ref> is specified also.
***************
*** 170,174 ****
This method is called by L<HTTP::WebTest|HTTP::WebTest> at the begin
! of test run. Its implementation in this class inits output buffer for
test report.
--- 169,173 ----
This method is called by L<HTTP::WebTest|HTTP::WebTest> at the begin
! of test run. Its implementation in this class inits output buffer for
test report.
***************
*** 197,201 ****
This method is called by L<HTTP::WebTest|HTTP::WebTest> at the end of
! test run. Its implementation in this class can email test report
according test parameters C<mail***>.
--- 196,200 ----
This method is called by L<HTTP::WebTest|HTTP::WebTest> at the end of
! test run. Its implementation in this class can email test report
according test parameters C<mail***>.
***************
*** 273,277 ****
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 272,276 ----
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
Index: Plugins.pod
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Plugins.pod,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Plugins.pod 16 Feb 2002 23:48:54 -0000 1.3
--- Plugins.pod 12 May 2002 13:35:35 -0000 1.4
***************
*** 17,30 ****
Plugin can be used to add new test types and add new report
! types. Plugin is just a Perl package which defines class with a number
of methods which if present are called by
L<HTTP::WebTest|HTTP::WebTest> at various stages of test.
Each plugin package should subclass
! L<HTTP::WebTest::Plugin|HTTP::WebTest::Plugin>. Report plugins can
subclass L<HTTP::WebTest::ReportPlugin|HTTP::WebTest::ReportPlugin>
which is subclass of L<HTTP::WebTest::Plugin|HTTP::WebTest::Plugin>
instead of
! it. L<HTTP::WebTest::ReportPlugin|HTTP::WebTest::ReportPlugin> defines
some helper methods useful in report plugin and handles some test
parameters common for report plugins.
--- 17,30 ----
Plugin can be used to add new test types and add new report
! types. Plugin is just a Perl package which defines class with a number
of methods which if present are called by
L<HTTP::WebTest|HTTP::WebTest> at various stages of test.
Each plugin package should subclass
! L<HTTP::WebTest::Plugin|HTTP::WebTest::Plugin>. Report plugins can
subclass L<HTTP::WebTest::ReportPlugin|HTTP::WebTest::ReportPlugin>
which is subclass of L<HTTP::WebTest::Plugin|HTTP::WebTest::Plugin>
instead of
! it. L<HTTP::WebTest::ReportPlugin|HTTP::WebTest::ReportPlugin> defines
some helper methods useful in report plugin and handles some test
parameters common for report plugins.
***************
*** 46,54 ****
PARAM is a name of test parameter and TYPE is it's type
! specification. It should be separated by any whitespace character.
Each test parameter type is defined by method in
! L<HTTP::WebTest::Plugin|HTTP::WebTest::Plugin>. Type C<foobar> is
! defined as method C<check_foobar> in this package. See its
documentation for list of all C<check_****> methods which define all
known test types.
--- 46,54 ----
PARAM is a name of test parameter and TYPE is it's type
! specification. It should be separated by any whitespace character.
Each test parameter type is defined by method in
! L<HTTP::WebTest::Plugin|HTTP::WebTest::Plugin>. Type C<foobar> is
! defined as method C<check_foobar> in this package. See its
documentation for list of all C<check_****> methods which define all
known test types.
***************
*** 67,71 ****
L<HTTP::WebTest::Plugin::TextMatchTest|HTTP::WebTest::Plugin::TextMatchTest>.
It defines following test parameters: C<ignore_case>, C<text_forbid>,
! C<text_require>, C<regex_forbid>, C<regex_require>. C<yesno> and
C<list> are test parameter types.
--- 67,71 ----
L<HTTP::WebTest::Plugin::TextMatchTest|HTTP::WebTest::Plugin::TextMatchTest>.
It defines following test parameters: C<ignore_case>, C<text_forbid>,
! C<text_require>, C<regex_forbid>, C<regex_require>. C<yesno> and
C<list> are test parameter types.
***************
*** 76,87 ****
=head2 start_tests ()
! Called before runing test sequence. You can put here some
! initalization. Report plugins can use this hook to create header of
report.
=head2 end_tests ()
! Called when test sequence is finished. You can put here some
! finialization code. Report plugins can use this hook to finish
creation of report.
--- 76,87 ----
=head2 start_tests ()
! Called before runing test sequence. You can put here some
! initalization. Report plugins can use this hook to create header of
report.
=head2 end_tests ()
! Called when test sequence is finished. You can put here some
! finialization code. Report plugins can use this hook to finish
creation of report.
***************
*** 89,103 ****
Called before L<HTTP::WebTest|HTTP::WebTest> does HTTP
! request. Various properties of request here can be set here.
=head2 check_response ()
Called once L<HTTP::WebTest|HTTP::WebTest> did HTTP request and have
! got HTTP response. Test checks should be placed here.
=head2 report_test ()
Called when L<HTTP::WebTest|HTTP::WebTest> got HTTP response after
! <check_response> hooks. Normally used by report plugins to generate
piece of report about test step just done.
--- 89,103 ----
Called before L<HTTP::WebTest|HTTP::WebTest> does HTTP
! request. Various properties of request here can be set here.
=head2 check_response ()
Called once L<HTTP::WebTest|HTTP::WebTest> did HTTP request and have
! got HTTP response. Test checks should be placed here.
=head2 report_test ()
Called when L<HTTP::WebTest|HTTP::WebTest> got HTTP response after
! <check_response> hooks. Normally used by report plugins to generate
piece of report about test step just done.
***************
*** 113,117 ****
C<TEST_GROUP_NAME> is a string which describes a group of test checks
! and their results. It is used during generation of test report.
C<TEST_RESULT> is an
--- 113,117 ----
C<TEST_GROUP_NAME> is a string which describes a group of test checks
! and their results. It is used during generation of test report.
C<TEST_RESULT> is an
***************
*** 137,141 ****
=item L<HTTP::WebTest::Plugin::DefaultReport|HTTP::WebTest::Plugin::DefaultReport>
! Example of report plugin. Uses C<start_tests>, C<report_test> and
C<end_tests> hooks.
--- 137,141 ----
=item L<HTTP::WebTest::Plugin::DefaultReport|HTTP::WebTest::Plugin::DefaultReport>
! Example of report plugin. Uses C<start_tests>, C<report_test> and
C<end_tests> hooks.
***************
*** 144,148 ****
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 144,148 ----
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
Index: Plugin.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Plugin.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Plugin.pm 24 Mar 2002 12:11:18 -0000 1.9
--- Plugin.pm 12 May 2002 13:35:35 -0000 1.10
***************
*** 13,18 ****
=head1 DESCRIPTION
! L<HTTP::WebTest|HTTP::WebTest> plugin classes can subclass this
! class. It provides some useful helper methods.
=head1 METHODS
--- 13,18 ----
=head1 DESCRIPTION
! L<HTTP::WebTest|HTTP::WebTest> plugin classes can subclass this class.
! It provides some useful helper methods.
=head1 METHODS
***************
*** 121,125 ****
If global test parameter C<$param> is defined returns true if latest
! test parameter C<$param> is C<yes>. False otherwise.
=cut
--- 121,125 ----
If global test parameter C<$param> is defined returns true if latest
! test parameter C<$param> is C<yes>. False otherwise.
=cut
***************
*** 144,148 ****
If latest test parameter C<$param> is defined returns true if latest
! test parameter C<$param> is C<yes>. False otherwise.
=cut
--- 144,148 ----
If latest test parameter C<$param> is defined returns true if latest
! test parameter C<$param> is C<yes>. False otherwise.
=cut
***************
*** 233,237 ****
=head2 validate_params (@params)
! Checks test parameters listed in C<@params>. Throws exception if any
of them are invalid.
--- 233,237 ----
=head2 validate_params (@params)
! Checks test parameters listed in C<@params>. Throws exception if any
of them are invalid.
***************
*** 252,256 ****
=head2 global_validate_params (@params)
! Checks global test parameters listed in C<@params>. Throws exception
if any of them are invalid.
--- 252,256 ----
=head2 global_validate_params (@params)
! Checks global test parameters listed in C<@params>. Throws exception
if any of them are invalid.
***************
*** 302,307 ****
=head2 param_types ()
! Method which should be redefined in subclasses. Returns information
! about test parameters which are supported by plugin. Used to validate
tests.
--- 302,307 ----
=head2 param_types ()
! Method which should be redefined in subclasses. Returns information
! about test parameters which are supported by plugin. Used to validate
tests.
***************
*** 324,328 ****
type.
! This is NOOP operation. It always succeed.
=cut
--- 324,328 ----
type.
! This is NOOP operation. It always succeed.
=cut
***************
*** 333,340 ****
Method which checks test parameter if it is value is of C<list>
! type. That is it is a reference on an array.
Optional list C<@optional_spec> can define specification on allowed
! elements of list. It can be either
('TYPE_1', 'TYPE_2', ..., 'TYPE_N')
--- 333,340 ----
Method which checks test parameter if it is value is of C<list>
! type. That is it is a reference on an array.
Optional list C<@optional_spec> can define specification on allowed
! elements of list. It can be either
('TYPE_1', 'TYPE_2', ..., 'TYPE_N')
***************
*** 345,349 ****
First specification requires list value of test parameter to contain
! C<N> elements. First element of list should be of should C<TYPE_1>
type, second element of list should of C<TYPE_2> type, ..., N-th
element of list should be of C<TYPE_N> type.
--- 345,349 ----
First specification requires list value of test parameter to contain
! C<N> elements. First element of list should be of should C<TYPE_1>
type, second element of list should of C<TYPE_2> type, ..., N-th
element of list should be of C<TYPE_N> type.
***************
*** 401,405 ****
Method which checks test parameter if it is value is of C<scalar>
! type. That is it is usual Perl scalar and is not a reference.
If C<$optional_regexp> is specified also checks value of parameter
--- 401,405 ----
Method which checks test parameter if it is value is of C<scalar>
! type. That is it is usual Perl scalar and is not a reference.
If C<$optional_regexp> is specified also checks value of parameter
***************
*** 430,434 ****
Method which checks test parameter if it is value is of C<stringref>
! type. That is it is a reference on scalar.
=head3 Exceptions
--- 430,434 ----
Method which checks test parameter if it is value is of C<stringref>
! type. That is it is a reference on scalar.
=head3 Exceptions
***************
*** 450,454 ****
Method which checks test parameter if it is value is of C<uri>
! type. That is it either scalar or L<URI|URI> object.
=head3 Exceptions
--- 450,454 ----
Method which checks test parameter if it is value is of C<uri>
! type. That is it either scalar or L<URI|URI> object.
=head3 Exceptions
***************
*** 477,481 ****
Method which checks test parameter if it is value is of C<hashlist>
! type. That is it is either a hash reference or an array reference
which points to array containing even number of elements.
--- 477,481 ----
Method which checks test parameter if it is value is of C<hashlist>
! type. That is it is either a hash reference or an array reference
which points to array containing even number of elements.
***************
*** 523,527 ****
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 523,527 ----
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
Index: Parser.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Parser.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Parser.pm 12 Feb 2002 11:47:20 -0000 1.7
--- Parser.pm 12 May 2002 13:35:35 -0000 1.8
***************
*** 103,110 ****
# let Perl remove quote chars and handle special
# sequences like \n but don't treat $ and @ as
! # special. Note \\\\ in patterns. It is actually just
! # *one* backslash. Four chars are because of double
! # quoting (one inside parser grammar definition,
! # second inside regexp body)
if($delim eq '"') {
$extracted =~ s/(^|[^\\\\])((?:\\\\\\\\)*)(\\\\)(\$|\@)/$1$2$3$3$4/g;
--- 103,110 ----
# let Perl remove quote chars and handle special
# sequences like \n but don't treat $ and @ as
! # special. Note \\\\ in patterns. It is actually
! # just *one* backslash. Four chars are because of
! # double quoting (one inside parser grammar
! # definition, second inside regexp body)
if($delim eq '"') {
$extracted =~ s/(^|[^\\\\])((?:\\\\\\\\)*)(\\\\)(\$|\@)/$1$2$3$3$4/g;
***************
*** 210,214 ****
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 210,214 ----
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
Index: Cookies.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Cookies.pm,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** Cookies.pm 24 Jan 2002 12:26:24 -0000 1.1.1.1
--- Cookies.pm 12 May 2002 13:35:35 -0000 1.2
***************
*** 62,67 ****
=head2 extract_cookies (...)
! Overloaded method. Passes all arguments to C<SUPER::extract_cookies>
! if receipt of cookies is enabled. Does nothing otherwise.
=cut
--- 62,67 ----
=head2 extract_cookies (...)
! Overloaded method. Passes all arguments to C<SUPER::extract_cookies>
! if receipt of cookies is enabled. Does nothing otherwise.
=cut
***************
*** 74,79 ****
=head2 add_cookie_header (...)
! Overloaded method. Passes all arguments to C<SUPER::add_cookie_header>
! if transmission of cookies is enabled. Does nothing otherwise.
=cut
--- 74,79 ----
=head2 add_cookie_header (...)
! Overloaded method. Passes all arguments to C<SUPER::add_cookie_header>
! if transmission of cookies is enabled. Does nothing otherwise.
=cut
***************
*** 86,92 ****
=head1 COPYRIGHT
! Copyright (c) 2000-2001 Richard Anderson. All rights reserved.
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 86,92 ----
=head1 COPYRIGHT
! Copyright (c) 2000-2001 Richard Anderson. All rights reserved.
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
Index: Cookbook.pod
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Cookbook.pod,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Cookbook.pod 27 Apr 2002 22:02:51 -0000 1.9
--- Cookbook.pod 12 May 2002 13:35:35 -0000 1.10
***************
*** 220,224 ****
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 220,224 ----
=head1 COPYRIGHT
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
Index: API.pm
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/API.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** API.pm 24 Mar 2002 11:01:36 -0000 1.9
--- API.pm 12 May 2002 13:35:35 -0000 1.10
***************
*** 1,5 ****
# $Id$
! # note that it is not package HTTP::WebTest::API. That's right
package HTTP::WebTest;
--- 1,5 ----
# $Id$
! # note that it is not package HTTP::WebTest::API. That's right
package HTTP::WebTest;
***************
*** 248,253 ****
=head3 Returns
! A list of two elements. First element is a reference on array which
! contains test objects. Second element is a reference on hash which
contains optional global parameters for test.
--- 248,253 ----
=head3 Returns
! A list of two elements. First element is a reference on array which
! contains test objects. Second element is a reference on hash which
contains optional global parameters for test.
***************
*** 274,278 ****
Most users don't need to use this part of C<HTTP::WebTest> API
! directly. It could be useful for users who want to:
=over 4
--- 274,278 ----
Most users don't need to use this part of C<HTTP::WebTest> API
! directly. It could be useful for users who want to:
=over 4
***************
*** 303,307 ****
Can switch user agent used by C<HTTP::WebTest> object if
! C<$optional_user_agent> is a user agent object. If
$optional_user_agent is passed as undef, the HTTP::WebTest object is
reset to use default user agent.
--- 303,307 ----
Can switch user agent used by C<HTTP::WebTest> object if
! C<$optional_user_agent> is a user agent object. If
$optional_user_agent is passed as undef, the HTTP::WebTest object is
reset to use default user agent.
***************
*** 318,327 ****
Can set plugins to be used during tests if C<$optional_plugins> is a
! reference on array which contains plugin objects. If it is passed as
undef resets C<HTTP::WebTest> object to use default set of plugins.
=head3 Returns
! A reference on array which contains plugin objects. Note that if you
add or remove plugin objects to this array it will change set of
plugins used by C<HTTP::WebTest> object during tests.
--- 318,327 ----
Can set plugins to be used during tests if C<$optional_plugins> is a
! reference on array which contains plugin objects. If it is passed as
undef resets C<HTTP::WebTest> object to use default set of plugins.
=head3 Returns
! A reference on array which contains plugin objects. Note that if you
add or remove plugin objects to this array it will change set of
plugins used by C<HTTP::WebTest> object during tests.
***************
*** 593,597 ****
C<HTTP::WebTest 2.xx> offers more rich API than its predecessor
! C<HTTP::WebTest 1.xx>. However while old API is deprecated it is still
supported.
--- 593,597 ----
C<HTTP::WebTest 2.xx> offers more rich API than its predecessor
! C<HTTP::WebTest 1.xx>. However while old API is deprecated it is still
supported.
***************
*** 650,654 ****
=head2 run_web_test ($tests, $num_fail_ref, $num_succeed_ref, $optional_options)
! This is not a method. It is subroutine which creates a
C<HTTP::WebTest> object and runs test sequence using it.
--- 650,654 ----
=head2 run_web_test ($tests, $num_fail_ref, $num_succeed_ref, $optional_options)
! This is not a method. It is subroutine which creates a
C<HTTP::WebTest> object and runs test sequence using it.
***************
*** 705,711 ****
=head1 COPYRIGHT
! Copyright (c) 2000-2001 Richard Anderson. All rights reserved.
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
--- 705,711 ----
=head1 COPYRIGHT
! Copyright (c) 2000-2001 Richard Anderson. All rights reserved.
! Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or
|