public class XMLTestSuiteLoader extends Object implements XTSConstants
TestSuite object.| Modifier and Type | Field and Description |
|---|---|
static String |
CANNOT_CREATE_TEST
An error happened while processing a
Test
description. |
static 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_TAGXR_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(Element element) |
protected static TestSuite |
buildTestSuite(Element element,
TestSuite parent)
Builds a
TestSuite from an input element. |
static TestSuite |
loadTestSuite(String testSuiteURI,
TestSuite parent)
Load the test suite defined by the input URI
|
protected static Document |
loadTestSuiteDocument(String testSuiteURI)
Loads the URI as a
Document |
public static final String TEST_SUITE_LOADING_EXCEPTION
public static final String CANNOT_CREATE_TEST
Test
description.
{0} : the public static TestSuite loadTestSuite(String testSuiteURI, TestSuite parent) throws TestException
TestExceptionprotected static Document loadTestSuiteDocument(String testSuiteURI) throws TestException
DocumentTestExceptionprotected static TestSuite buildTestSuite(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.TestExceptionprotected static Test buildTest(Element element) throws TestException
TestExceptionCopyright © 2000–2017 Apache Software Foundation. All rights reserved.