Class XMLTestSuiteRunner

java.lang.Object
org.apache.batik.test.xml.XMLTestSuiteRunner
All Implemented Interfaces:
XMLReflectConstants, XTRunConstants, XTSConstants

public class XMLTestSuiteRunner extends Object implements XTRunConstants, XTSConstants
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.
Version:
$Id: XMLTestSuiteRunner.java 1806580 2017-08-29 12:06:44Z ssteiner $
  • Field Details

    • MESSAGE_UNMATCHED_TEST_IDS

      public static final String MESSAGE_UNMATCHED_TEST_IDS
      Displayed when no test or testSuite matching the input id was found. {0} : unmatched id set
      See Also:
    • CANNOT_CREATE_TEST_REPORT_PROCESSOR

      public static final String CANNOT_CREATE_TEST_REPORT_PROCESSOR
      An error happened while processing a TestreportProcessor description. {0} : the <testReportProcessor> "className" attribute value {1} : exception's class name {2} : exception's message {3} : exception's stack trace
      See Also:
    • TEST_SUITE_EXCEPTION

      public static final String TEST_SUITE_EXCEPTION
      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.
      See Also:
    • TEST_REPORT_PROCESSING_EXCEPTION

      public static final String TEST_REPORT_PROCESSING_EXCEPTION
      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.
      See Also:
    • USAGE

      public static final String USAGE
      Displayed when the user passes no arguments to the command line.
      See Also:
    • NOT_A_FILE_TRY_URI

      public static final String 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.
      See Also:
    • COULD_NOT_CONVERT_FILE_NAME_TO_URI

      public static final String COULD_NOT_CONVERT_FILE_NAME_TO_URI
      Displayed when the input file name cannot be turned into a URL
      See Also:
    • INVALID_URI

      public static final String INVALID_URI
      Displayed when the input argument does not represent a valid URI
      See Also:
    • INVALID_DOCUMENT

      public static final String INVALID_DOCUMENT
      Displayed when the input document cannot be parsed. {0} : uri of the invalid document. {1} : exception generated while parsing {2} : exception message
      See Also:
    • ERROR_RUNNING_TEST_SUITE

      public static final String ERROR_RUNNING_TEST_SUITE
      Error displayed when an error occurs while running the test suite
      See Also:
  • Constructor Details

    • XMLTestSuiteRunner

      public XMLTestSuiteRunner()
  • Method Details