Java Doc for XMLTestSuiteRunner.java in » Graphic-Library » batik » org » apache » batik » test » xml » Java Source Code / Java DocumentationJava Source Code and Java Documentation
This class can be used to build and run a TestSuite from
an XML description following the "XML Test Run" and "XML Test Suite"
formats, whose constants are defined in the XTRunConstants
and XTSConstants interfaces.
This class takes a "Test Run" XML description as an input. That
description contains:
+ pointers to a number of "Test Suite" XML descriptions,
which contain the definition of the set of Tests to be
run and their configuration.
+ a description of the set of TestReportProcessor and
their configuration that should be used to process the reports
generated by the various TestSuites.
NOT_A_FILE_TRY_URI Displayed when the input argument does not represent an existing
file to notify the user that the argument is going to be
interpreted as a URI.
final public static String CANNOT_CREATE_TEST_REPORT_PROCESSOR(Code)
An error happened while processing a TestreportProcessor
description.
{0} : the "className" attribute value
{1} : exception's class name
{2} : exception's message
{3} : exception's stack trace
COULD_NOT_CONVERT_FILE_NAME_TO_URI
final public static String COULD_NOT_CONVERT_FILE_NAME_TO_URI(Code)
Displayed when the input file name cannot be turned into a URL
ERROR_RUNNING_TEST_SUITE
final public static String ERROR_RUNNING_TEST_SUITE(Code)
Error displayed when an error occurs while running the
test suite
Displayed when the input argument does not represent a valid
URI
MESSAGE_UNMATCHED_TEST_IDS
final public static String MESSAGE_UNMATCHED_TEST_IDS(Code)
Displayed when no test or testSuite matching the input id was
found.
{0} : unmatched id set
NOT_A_FILE_TRY_URI
final public static String NOT_A_FILE_TRY_URI(Code)
Displayed when the input argument does not represent an existing
file to notify the user that the argument is going to be
interpreted as a URI.
TEST_REPORT_PROCESSING_EXCEPTION
final public static String TEST_REPORT_PROCESSING_EXCEPTION(Code)
An error happened while processing the TestReport
generated by the TestSuite
{0} : TestReportProcessor class name.
{1} : exception's class name.
{2} : exception's message
{3} : exception's stack trace.
TEST_SUITE_EXCEPTION
final public static String TEST_SUITE_EXCEPTION(Code)
An error happened while running the TestSuite
{0} : TestSuite name
{1} : TestSuite class name.
{1} : exception's class name.
{2} : exception's message
{3} : exception's stack trace.
Builds a TestSuite from an input element.
This method assumes that element is a <testRun>
instance. The element is scanned for children
<testSuite> elements which is loaded into
a Test and composited into a TestSuite
Runs the test suite described by the input
Document object. If the input ids array
is null or of zero length, then all the tests will be run.
Otherwise, only the tests identified by
the array will be run.