WWW::Webrobot - Run Testplans
use WWW::Webrobot; WWW::Webrobot -> new($cfg) -> run($test_plan);
configures Webrobot with $cfg, reads a testplan and executes this plan
Runs a testplan according to a configuration.
Construct an object.
$cfg_name SCLAR: config string REF : Name of the config file $cmd_param ??? to be documented
Example: $wr = WWW::Webrobot->new(\"configfile.cfg"); $wr = WWW::Webrobot->new(<<EOF); names=first=value names=second=another value EOF
Get the config data.
Read in the config data from a file named $cfg. Add all properties in $cmd_properties. $cmd_properties is a ref to a list of key/value pairs.
Example: $cmd_properties = [[key0, value0], [key1, value1], ...];
Note: Currently $cfg_name may also be a (internal) hash. It is needed for webrobot-load but is declared deprecated.
Read in the testplan from a file $test_plan and run it. If $test_plan is SCALAR it is taken as a string, if $test_plan is a reference it is taken as a file name.
Example: $wr->run(\"xml_file.xml"); $wr->run(<<EOF); <?xml version="1.0" encoding="iso-8859-1"?> <plan> <request> <method value='POST'/> <url value='${application}/content'/> </request> </plan> EOF
WWW::Webrobot::pod::Config
WWW::Webrobot::pod::Testplan
To install WWW::Webrobot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Webrobot
CPAN shell
perl -MCPAN -e shell install WWW::Webrobot
For more information on module installation, please visit the detailed CPAN module installation guide.