Update of /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest
In directory usw-pr-cvs1:/tmp/cvs-serv23576
Modified Files:
Cookbook.pod
Log Message:
Add some content for the start
Index: Cookbook.pod
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest/lib/HTTP/WebTest/Cookbook.pod,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** Cookbook.pod 2002/01/24 12:26:28 1.1.1.1
--- Cookbook.pod 2002/01/28 10:05:17 1.2
***************
*** 9,13 ****
=head1 DESCRIPTION
! TODO
=head1 COPYRIGHT
--- 9,85 ----
=head1 DESCRIPTION
! This document contains some examples of L<HTTP::WebTest|HTTP::WebTest>
! usage.
!
! All examples are either runnable programs (see
! L<HTTP::WebTest::API|HTTP::WebTest::API>) or runnable wtscript files
! (see L<perldoc wt|wt>).
!
! =head1 BASICS
!
! =head2 Check Statis Website
!
! Wtscript:
!
! test_name = First page
! url = http://martynov.org/
! text_require = ( Ilya Martynov's Web Site )
! end_test
!
! test_name = Mail-CheckUser page
! url = http://martynov.org/checkuser
! text_require = ( Mail-CheckUser
! Download )
! regex_require = ( Mail-CheckUser-[\d\.]+\.tar\.gz )
! end_test
!
! Perl script:
!
! use HTTP::WebTest;
!
! my $webtest = new HTTP::WebTest;
!
! $webtest->run_tests([ {
! test_name => 'First page',
! url => 'http://martynov.org/',
! text_require => [ "Ilya Martynov's Web Site" ]
! },
! {
! test_name => 'Mail-CheckUser page',
! url => 'http://martynov.org/checkuser',
! text_require => [ 'Mail-CheckUser',
! 'Download' ],
! regex_require =>
! [ 'Mail-CheckUser-[\d\.]+\.tar\.gz' ]
! }
! ]);
!
! =head2 Check Login Form
!
! Wtscript:
!
! show_cookies=yes
!
! test_name = Login page
! url = http://fsck.com/rt2/
! text_require = ( Login
! Username:
! Password:)
! end_test
!
! test_name = Submit wrong username & password
! url = http://fsck.com/rt2/
! params = ( user => unknownUser
! pass => somePassword )
! text_require = ( Error
! Your username or password is incorrect )
! end_test
!
! test_name = Submit correct username & password
! url = http://fsck.com/rt2/
! params = ( user => guest
! pass => guest )
! regex_require = ( Signed in as.*?guest.*?\. )
! end_test
=head1 COPYRIGHT
|