|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.netriser.xmltestsuite.TestFactory
Provides configuration data and test objects generated an xml file.
Provides the configuration as a resource to other objects. Instantiates test objects from a specified node in the xml input file The default xml pathname is defined by the property ConfigurationResource.file or test.xml
This class is instantiated as a singleton using a factory To obtain a instance use
ConfigurationResource ResourceFactory.getConfigurationResource();
Constructor Summary | |
TestFactory(java.io.File xmlFile)
Reads the xml configuration file. |
Method Summary | |
org.w3c.dom.Document |
getConfiguration()
Returns the current xml document |
org.w3c.dom.Element |
getTopElement()
Returns the top element in the current xml document |
void |
instatiateTestObjects(org.w3c.dom.Element stepElement,
junit.framework.TestSuite parent)
Instatiate java objects based on the tree of elements whose root is the parameter stepElement. |
void |
instatiateTestObjects(junit.framework.TestSuite parent,
java.lang.String xmlTestRootName)
Instatiate java objects based on the tree of elements whose root is the first element which matches the parameter xmlTestRootName, typically testSuite. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestFactory(java.io.File xmlFile)
ConfigurationResource ResourceFactory.getConfigurationResource();
Method Detail |
public org.w3c.dom.Document getConfiguration()
public org.w3c.dom.Element getTopElement()
public void instatiateTestObjects(junit.framework.TestSuite parent, java.lang.String xmlTestRootName)
parent
- xmlTestRootName
- public void instatiateTestObjects(org.w3c.dom.Element stepElement, junit.framework.TestSuite parent)
stepElement
- parent
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |