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_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(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 <test> "className" attribute value
{1} : exception's class name
{2} : exception's message
{3} : exception's stack tracepublic static TestSuite loadTestSuite(String testSuiteURI, TestSuite parent) throws TestException
TestException
protected static Document loadTestSuiteDocument(String testSuiteURI) throws TestException
Document
TestException
protected 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.TestException
protected static Test buildTest(Element element) throws TestException
TestException
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.