public class XMLTestSuiteLoader extends java.lang.Object implements XTSConstants
TestSuite
object.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CANNOT_CREATE_TEST
An error happened while processing a
Test
description. |
static java.lang.String |
TEST_SUITE_LOADING_EXCEPTION
An error happened while loading a test suite document.
|
XTS_ID_ATTRIBUTE, XTS_NAME_ATTRIBUTE, XTS_NAMESPACE_URI, XTS_TEST_GROUP_TAG, XTS_TEST_SUITE_TAG, XTS_TEST_TAG
XR_ARG_TAG, XR_CLASS_ATTRIBUTE, XR_NAME_ATTRIBUTE, XR_PROPERTY_TAG, XR_VALUE_ATTRIBUTE
Constructor and Description |
---|
XMLTestSuiteLoader() |
Modifier and Type | Method and Description |
---|---|
protected static Test |
buildTest(org.w3c.dom.Element element) |
protected static TestSuite |
buildTestSuite(org.w3c.dom.Element element,
TestSuite parent)
Builds a
TestSuite from an input element. |
static TestSuite |
loadTestSuite(java.lang.String testSuiteURI,
TestSuite parent)
Load the test suite defined by the input URI
|
protected static org.w3c.dom.Document |
loadTestSuiteDocument(java.lang.String testSuiteURI)
Loads the URI as a
Document |
public static final java.lang.String TEST_SUITE_LOADING_EXCEPTION
public static final java.lang.String CANNOT_CREATE_TEST
Test
description.
{0} : the public static TestSuite loadTestSuite(java.lang.String testSuiteURI, TestSuite parent) throws TestException
TestException
protected static org.w3c.dom.Document loadTestSuiteDocument(java.lang.String testSuiteURI) throws TestException
Document
TestException
protected static TestSuite buildTestSuite(org.w3c.dom.Element element, TestSuite parent) throws TestException
TestSuite
from an input element.
This method assumes that element is a <testSuite>
instance, as the input document should have been
validated when loaded.TestException
protected static Test buildTest(org.w3c.dom.Element element) throws TestException
TestException