Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest
In directory usw-pr-cvs1:/tmp/cvs-serv3213
Modified Files:
Cookbook.pod
Log Message:
Added example on usage of ::HarnessReport plugin
Index: Cookbook.pod
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Cookbook.pod,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Cookbook.pod 2002/01/28 10:08:53 1.4
--- Cookbook.pod 2002/01/28 10:59:30 1.5
***************
*** 20,24 ****
=head2 Check Statis Website
! Wtscript:
test_name = First page
--- 20,24 ----
=head2 Check Statis Website
! This wtscript tests couple of static pages on my website:
test_name = First page
***************
*** 34,38 ****
end_test
! Perl script:
use HTTP::WebTest;
--- 34,38 ----
end_test
! Same test in form of Perl script:
use HTTP::WebTest;
***************
*** 58,62 ****
=head2 Check Login Form
! Wtscript:
test_name = Login page
--- 58,62 ----
=head2 Check Login Form
! This wtscripts tests login form on http://fsck.com/rt2/:
test_name = Login page
***************
*** 81,84 ****
--- 81,100 ----
regex_require = ( Signed in as.*?guest.*?\. )
end_test
+
+ =head1 ADVANCED
+
+ =head2 Test::Harness compatible output
+
+ This Perl script reads test specification from file C<test.wt> and
+ generates L<Test::Harness|Test::Harness> compatible output:
+
+ use HTTP::WebTest;
+
+ my $webtest = new HTTP::WebTest;
+ $webtest->run_wtscript('test.wt',
+ {
+ default_report => 'no',
+ plugins => [ '::HarnessReport' ]
+ });
=head1 COPYRIGHT
|