package WWW::Webrobot::HarnessTester; use strict; use warnings; # Author: Stefan Trcek # Copyright(c) 2004 ABAS Software AG use Test::Harness; use File::Path; use File::Basename; my $USAGE = <$filename" or die "Can't write to $filename"; print FILE < new(\\"bin/webtest.prop"); \$webrobot -> run(\\"$_"); 1; EOF close FILE; chmod 0777, $filename or warn "Can't chmod a+x, $filename"; push @files, $filename; $i++; } eval {runtests(@files) }; print $@; if ($@) { print < \@ARGV, tests => \@tests); =head1 DESCRIPTION Make *.t executables from *.xml testplans and run the plans. Runs tests for the abas-eB shop. The config file is C, change it for your needs. =head1 METHODS =over =item exit WWW::Webrobot::HarnessTester::run(%parm); - 'argv': checks commandline parameters - 'test' is a ref to a list of .xml testplan names Creates *.t files to be run by Test::Harness. The source for a *.t file is a *.xml file. =back