WebDAO::Test - Class for tests
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);
Return Engine
my $eng = t_get_engine ('www/index.html', config=>'tests.ini');
Return engine object. Used params:
class - Class of engine (default -"WebDAO::Kernel"),
index_file - path to index file
Return object of test class class_of_testlib (default
"WebDAO::Test")
return tree of node $contaner . default
$engine
get object by path (query)
$tlib->xget('/page')
#[, arg1=>1, arg2=>2]
Query path
get object by resolve_path query
$tlib->get_by_path('/page')
$tlib->get_by_path('/page', $root_object)
Get curren Session object
http://webdao.sourceforge.net
Zahatski Aliaksandr, <zag@cpan.org>
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.