The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DTS_UT::Controller::MainController - controller implementation for MVC architeture

DESCRIPTION

DTS_UT::Controller::MainController is the controller for the web application. It is based on DTS_UT::Controller class.

This class defines the actions for each run mode available for the web application:

  • list_packages

  • show_error

  • exec_test

EXPORT

Nothing.

METHODS

setup

Does initial configuration. It defines the actions (method invocation) for each run mode available.

list_packages

Invokes DTS_UT::Model::DTS to list the packages available in the server configured in the web application file (YAML file) and the proper HTML::Template template to display the information.

show_error

Loads the default HTML::Template template for error messages that occurs in any exception.

exec_test

Invokes DTS_UT::Model::UnitTestExec to execute the test for the DTS packages selected.

To select parameters, this method expects to receive as parameters with names that start with the regex /^dts\d+/ and it will throw an exception with none is find.

SEE ALSO

AUTHOR

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Alceu Rodrigues de Freitas Junior

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.