Test Automation Using Perl
- Test Automation using Perl
- Preface
- Basic Testing Framework in Perl
- Test::More
- Moving over to Test::More
- Test::More ok( trueness, name);
- Test::More is( value, expected_value, name);
- Test::More isnt( value, not_expected_value, name);
- Test::More isnt undef
- diag( just_a_message );
- note( just_a_message );
- (note or diag) explain( just_a_variable );
- TODO
- TODO: unexpected success
- like(value, qr/expected regex/, name);
- like(value, qr/expected regex/, name);
- Another example
- cmp_ok( this, op, that, name);
- is_deeply( complex_structure, expected_complex structure, name);
- is_deeply on a hash
- Platform dependent tests
- SKIP some tests
- SKIP with locale
- Stop running current test script
- Stop all the test scripts
- Stop testing - with prove
- Exercises
- Test coverage using Devel::Cover
- Can module be loaded? use_ok and require_ok
- can_ok('Class', qw(method_a method_b));
- Declare your plan at execution time
- Test blocks (use subtest instead)
- Counting tests in the small blocks (use subtest instead)
- subtest with plan
- done_testing
- subtest with implicit done_testing
- skip all
- All the tests
- Exercise: skip test
- Exercise: use coverage
- Test libraries
- Running and reporting tests
- Command line application
- Networking devices
- Web Applications
- Selenium
- Servers
- Testing networking devices
- Database Testing
- Database access using Perl DBI
- Advanced Database access using Perl DBI
- Database access using DBIx::Class
- Microsoft Windows GUI Testing
- Internet Explorer
- X-Windows
- Appendixes
Your comments: