perl-Test-WWW-Mechanize-Mojo - Test::WWW::Mechanize for Mojo / Mojolicious

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Test-WWW-Mechanize-Mojo-0.0.20-alt1.noarch.rpm
Package name perl-Test-WWW-Mechanize-Mojo
Package version 0.0.20
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 47.41 KB
Installed size 47.41 KB
the Mojo manpage is an MVC Web Application Framework.
the Test::WWW::Mechanize manpage is a subclass of the WWW::Mechanize manpage that incorporates
features for web application testing. The the Test::WWW::Mechanize::Mojo manpage
module meshes the two to allow easy testing of the Mojo manpage applications without
needing to starting up a web server.
Testing web applications has always been a bit tricky, normally
requiring starting a web server for your application and making real HTTP
requests to it. This module allows you to test the Mojo manpage web
applications but does not require a server or issue HTTP
requests. Instead, it passes the HTTP request object directly to
the Mojo manpage. Thus you do not need to use a real hostname:
"http://localhost/" will do. However, this is optional. The following
two lines of code do exactly the same thing:
Links which do not begin with / or are not for localhost can be handled
as normal Web requests - this is handy if you have an external
single sign-on system. You must set allow_external to true for this:
You can also test a remote server by setting the environment variable
MOJO_SERVER; for example:
$ MOJO_SERVER= prove -l t
will run the same tests on the application running at regardless of whether or not you specify
http:://localhost for Test::WWW::Mechanize::Mojo.
Furthermore, if you set MOJO_SERVER, the server will be regarded
as a remote server even if your links point to localhost. Thus, you
can use Test::WWW::Mechanize::Mojo to test your live webserver
running on your local machine, if you need to test aspects of your
deployment environment (for example, configuration options in an
http.conf file) instead of just the Mojo request handling.
This makes testing fast and easy. the Test::WWW::Mechanize manpage provides
functions for common web testing scenarios. For example:
$mech->get_ok( $page );
$mech->title_is( "Invoice Status", "Make sure we're on the invoice page" );
$mech->content_contains( "Andy Lester", "My name somewhere" );
$mech->content_like( qr/(cpan|perl)\.org/, "Link to or CPAN" );
This module supports cookies automatically.
To use this module you must pass it the name of the application. See
the SYNOPSIS above.
Note that Mojo has a special developing feature: the debug
screen. By default this module will treat responses which are the
debug screen as failures. If you actually want to test debug screens,
please use:
$mmech->{catalyst_debug} = 1;
An alternative to this module is the Test::Mojo manpage.


Package Version Architecture Repository
perl-Test-WWW-Mechanize-Mojo - - -


Name Value
/usr/share/perl5 -
perl( -
perl(HTML/ -
perl(Test/ -
perl(Test/WWW/ -
perl( -
perl-base >= 1:5.12.0
rpmlib(PayloadIsLzma) -


Name Value
perl(Test/WWW/Mechanize/ = 0.0.020
perl-Test-WWW-Mechanize-Mojo = 0.0.20-alt1


Type URL
Binary Package perl-Test-WWW-Mechanize-Mojo-0.0.20-alt1.noarch.rpm
Source Package perl-Test-WWW-Mechanize-Mojo-0.0.20-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Test-WWW-Mechanize-Mojo rpm package:
    # sudo apt-get install perl-Test-WWW-Mechanize-Mojo



See Also

Package Description
perl-Test-WWW-Mechanize-MultiMech-1.006001-alt1.noarch.rpm coordinate multi-object mech tests for multi-user web app testing
perl-Test-WWW-Mechanize-Object-0.020-alt1.noarch.rpm run mech tests by making
perl-Test-WWW-Selenium-1.36-alt3_7.noarch.rpm Test applications using Selenium Remote Control
perl-Test-WWW-Selenium-Catalyst-0.07-alt3_7.noarch.rpm Test your Catalyst app with Selenium
perl-Test-WWW-Selenium-Conversion-IDE-0.5-alt1.noarch.rpm module to during a test run convert on the fly Selenese IDE html to perl tests
perl-Test-WWW-Selenium-HTML-0.02-alt1.noarch.rpm Run Selenium HTML tests directly
perl-Test-WWW-Selenium-More-0.12-alt1.noarch.rpm More tools for Selenium testing
perl-Test-WWW-Selenium-Sencha-0.001-alt1.noarch.rpm Selenium-based testing for Sencha apps
perl-Test-WWW-Simple-0.39-alt1.noarch.rpm Test Web applications using TAP
perl-Test-WWW-Stub-0.10-alt1.noarch.rpm Block and stub specified URL for LWP
perl-Test-Wait-0.04-alt1.noarch.rpm Make tests wait for manual testing purposes
perl-Test-WebDriver-0.01-alt1.noarch.rpm Useful testing subclass for Selenium WebDriver!
perl-Test-Whitespaces-1.2.1-alt1.noarch.rpm test source code for errors in whitespaces
perl-Test-Whitespaces-scripts-1.2.1-alt1.noarch.rpm Test-Whitespaces scripts
perl-Test-Wiretap-1.01-alt1.noarch.rpm perl module Test-Wiretap