Filewatcher File Search File Search
Content Search
» » » » » »


declarative testing for your web app

Often in web apps, tests are very dependent on the state set up by previous tests. If one test fails (e.g. "follow the link to the admin page") then it's likely there will be many more failures. This module aims to alleviate this problem, as well as provide a nicer interface to Test::WWW::Mechanize.

The central idea is that of "flow". Each flow is a sequence of commands ("fill in this form") and assertions ("content should contain 'testuser'"). If any of these commands or assertions fail then the flow is aborted. Only that one failure is reported to the test harness and user. Flows may also contain other flows. If an inner flow fails, then the outer flow fails as well.

Package version:0.02


Test::WWW::DeclarUser Contributed Perl DocumentTest::WWW::Declare(3)

       Test::WWW::Declare - declarative testing for your web app

           use Test::WWW::Declare tests => 3;
           use Your::Web::App::Test;


           session 'testuser' => run {
               flow 'log in and out' => check {
                   flow 'log 


0.02    Sun Oct 12 18:41:15 2008
        Depend on new HTTP::Server::Simple to avoid race conditions in tests

0.01    Fri Nov  2 14:34:26 2007
        Version bump

0.01_01 Wed Sep 26 16:15:16 2007
        Initial release to CPAN

Browse inside perl-Test-WWW-Declare-0.02-1.el5.rf.noarch.rpm

1.31 KB2014-11-30HEADER  view  33 mirrors
         [DIR]usr/ (2)  65535+ mirrors

Download perl-Test-WWW-Declare-0.02-1.el5.rf.noarch.rpm

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017