Hi,
Finally I found a reason to work on the symmetrical counterpart of
XMLReport, namely XMLParser. The module should be shortly available from
CPAN and has been put under the well-known sourceforge CVS tree.
This module allows you to define webtest scripts in a simple XML format.
Nothing spectacular here, in fact the only relevant elements are params
(global parameters), test (a test definition), lists (a test consisting
of multple assertions, e.g. like require_text) and param (a single
subtest). This all follows the wtscript syntax very close.
In the included 'scripts' directory you will find a conversion tool to
convert from wtscipt or the older experimental and broken XML format to
the current XML.
Further, a simple command line application 'webtest', to run tests from
XML definitions. This is a drop-in replacement for the similar named
tool in the HTTP::WebTest::Plugin::XMLReport distribution.
Also you will find the DTD here, but the examples (AKA tests, below
directory 't') may be more intuitive to read.
As always: comments are very much welcome and perldoc is your friend!
Cheers,
Joe.
|