Class XMLTestSuiteLoader

  • All Implemented Interfaces:
    XMLReflectConstants, XTSConstants

    public class XMLTestSuiteLoader
    extends java.lang.Object
    implements XTSConstants
    This class loads an XML document describing a test suite into a TestSuite object.
    Version:
    $Id: XMLTestSuiteLoader.java 1806580 2017-08-29 12:06:44Z ssteiner $
    • Field Detail

      • TEST_SUITE_LOADING_EXCEPTION

        public static final java.lang.String TEST_SUITE_LOADING_EXCEPTION
        An error happened while loading a test suite document. {0} : the <testSuite> href value. {1} : the exception's class name {2} : exception's message {3} : exception's stack trace
        See Also:
        Constant Field Values
      • CANNOT_CREATE_TEST

        public static final java.lang.String CANNOT_CREATE_TEST
        An error happened while processing a Test description. {0} : the <test> "className" attribute value {1} : exception's class name {2} : exception's message {3} : exception's stack trace
        See Also:
        Constant Field Values
    • Constructor Detail

      • XMLTestSuiteLoader

        public XMLTestSuiteLoader()
    • Method Detail

      • loadTestSuiteDocument

        protected static org.w3c.dom.Document loadTestSuiteDocument​(java.lang.String testSuiteURI)
                                                             throws TestException
        Loads the URI as a Document
        Throws:
        TestException
      • buildTestSuite

        protected static TestSuite buildTestSuite​(org.w3c.dom.Element element,
                                                  TestSuite parent)
                                           throws TestException
        Builds a TestSuite from an input element. This method assumes that element is a <testSuite> instance, as the input document should have been validated when loaded.
        Throws:
        TestException