HTTP::WebTest::Plugin - Base class for HTTP::WebTest plugins.
Not applicable.
HTTP::WebTest plugin classes can subclass this class. It provides some useful helper methods.
Constructor.
A new plugin object which will be used by HTTP::WebTest object $webtest.
$webtest
A HTTP::WebTest object which uses this plugin.
If global test parameter $param is not defined returns $optional_default or undef if it is not defined also.
$param
$optional_default
undef
If global test parameter $param is defined returns it's value.
If latest test parameter $param is not defined returns $optional_default or undef if it is not defined also.
If latest test parameter $param is defined returns it's value.
If global test parameter $param is not defined returns $optional_default or false if it is not defined also.
If global test parameter $param is defined returns true if latest test parameter $param is yes. False otherwise.
yes
If latest test parameter $param is not defined returns $optional_default or false if it is not defined also.
If latest test parameter $param is defined returns true if latest test parameter $param is yes. False otherwise.
Merges test parameter value with global test parameter value.
A merged test parameter value.
Factory method which creates test result object.
A HTTP::WebTest::TestResult object.
Checks test parameters.
A hash. The keys are the test parameters and the values are HTTP::WebTest::TestResult objects.
Method which should be redefined in subclasses. Returns information about test parameters which are supported by plugin. Used to validate tests.
An hash reference. Keys are names of test parameters which are supported by plugin. Values are their type.
Method which checks test parameter if it is value is of anything type.
anything
Always true.
Method which checks test parameter if it is value is of list type.
list
True if $value is an array reference. False otherwise.
$value
Method which checks test parameter if it is value is of string type.
string
True if $value is a string. False otherwise.
Method which checks test parameter if it is value is of stringref type.
stringref
True if $value is a string reference. False otherwise.
Method which checks test parameter if it is value is of uri type.
uri
True if $value is an URI. False otherwise.
Method which checks test parameter if it is value is of hashlist type.
hashlist
True if $value is a hash reference or an array reference which points to array containing even number of elements. False otherwise.
Method which checks test parameter if it is value is of yesno type.
yesno
True if $value is either yes or no. False otherwise.
no
Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License.
HTTP::WebTest
HTTP::WebTest::API
HTTP::WebTest::Plugins
HTTP::WebTest::ReportPlugin
To install HTTP::WebTest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::WebTest
CPAN shell
perl -MCPAN -e shell install HTTP::WebTest
For more information on module installation, please visit the detailed CPAN module installation guide.