Zahatski Aliaksandr > WebDAO > WebDAO::Test

Download:
WebDAO-2.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source  

NAME ^

WebDAO::Test - Class for tests

SYNOPSIS ^

    use WebDAO::Test;

    my $eng = WebDAO::Test::make_engine(
            class      => 'MyClass',
            config     => 't/tests.ini',
           index_file => 'contrib/www/index.xhtml'
          )
    
    my $tlib = new WebDAO::Test::(eng =>$eng);

DESCRIPTION ^

Class for tests

FUNCTIONS ^

t_get_engine

Return Engine

 my $eng =  t_get_engine ('www/index.html', config=>'tests.ini');

make_eng [class=><CLASS>, index_file=><file_path>, %other_params_to_engine]

Return engine object. Used params:

  class - Class of engine (default -"WebDAO::Kernel"), 
  index_file - path to index file

make_test_lib <engine_object> [, <class_of_testlib>]

Return object of test class class_of_testlib (default "WebDAO::Test")

METHODS ^

tree [ $contaner ]

return tree of node $contaner . default $engine

xget

get object by path (query)

     $tlib->xget('/page')

resolve_path '/path/Path'

#[, arg1=>1, arg2=>2]

Query path

get_by_path

get object by resolve_path query

     $tlib->get_by_path('/page')
     $tlib->get_by_path('/page', $root_object)

eng

get root object

get_session

Get curren Session object

SEE ALSO ^

http://webdao.sourceforge.net

AUTHOR ^

Zahatski Aliaksandr, <zag@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright 2002-2009 by Zahatski Aliaksandr

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: