public class TestConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MaximumThreadsPerServer |
Constructor and Description |
---|
TestConfiguration()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected org.springframework.extensions.config.element.GenericConfigElement |
buildConfigElement(org.w3c.dom.Element root)
Build a configuration element list from an elements child nodes
|
protected org.springframework.extensions.config.element.GenericConfigElement |
buildConfigElement(org.w3c.dom.Element root,
org.springframework.extensions.config.element.GenericConfigElement cfgElem)
Build a configuration element list from an elements child nodes
|
protected org.w3c.dom.Element |
findChildNode(java.lang.String name,
org.w3c.dom.NodeList list)
Find the specified child node in the node list
|
java.util.List |
getServerList()
Return the server list
|
java.util.List |
getTestList()
Return the test list
|
protected java.lang.String |
getText(org.w3c.dom.Element elem)
Get the value text for the specified element
|
int |
getThreadsPerServer()
Check how many test threads are to be created per server
|
void |
loadConfiguration(org.w3c.dom.Document doc)
Load the configuration from the specified document
|
void |
loadConfiguration(java.io.Reader in)
Load the configuration from the specified input stream
|
void |
loadConfiguration(java.lang.String fname)
Load the configuration from the specified file.
|
protected void |
procDebugSetup(org.springframework.extensions.config.ConfigElement debug)
Process the debug setup
|
protected void |
procRunParameters(org.springframework.extensions.config.ConfigElement runParams)
Process the run parameters
|
protected void |
procServerList(org.springframework.extensions.config.ConfigElement servers)
Process the server list
|
protected void |
procTestList(org.springframework.extensions.config.ConfigElement tests)
Process the test list
|
boolean |
runInterleaved()
Check if the tests should be run interleaved or sequentially
|
public static final int MaximumThreadsPerServer
public java.util.List getServerList()
public java.util.List getTestList()
public final boolean runInterleaved()
public final int getThreadsPerServer()
public final void loadConfiguration(java.lang.String fname) throws java.io.IOException, InvalidConfigurationException
fname
- java.lang.Stringjava.io.IOException
InvalidConfigurationException
public final void loadConfiguration(java.io.Reader in) throws java.io.IOException, InvalidConfigurationException
in
- Readerjava.io.IOException
InvalidConfigurationException
public void loadConfiguration(org.w3c.dom.Document doc) throws java.io.IOException, InvalidConfigurationException
doc
- Documentjava.io.IOException
InvalidConfigurationException
protected final void procServerList(org.springframework.extensions.config.ConfigElement servers) throws InvalidConfigurationException
servers
- ConfigElementInvalidConfigurationException
protected final void procTestList(org.springframework.extensions.config.ConfigElement tests) throws InvalidConfigurationException
tests
- ConfigElementInvalidConfigurationException
protected final void procRunParameters(org.springframework.extensions.config.ConfigElement runParams) throws InvalidConfigurationException
runParams
- ConfigElementInvalidConfigurationException
protected final void procDebugSetup(org.springframework.extensions.config.ConfigElement debug) throws InvalidConfigurationException
debug
- ConfigElementInvalidConfigurationException
protected final org.w3c.dom.Element findChildNode(java.lang.String name, org.w3c.dom.NodeList list)
name
- Stringlist
- NodeListprotected final java.lang.String getText(org.w3c.dom.Element elem)
elem
- Elementprotected final org.springframework.extensions.config.element.GenericConfigElement buildConfigElement(org.w3c.dom.Element root)
root
- Elementprotected final org.springframework.extensions.config.element.GenericConfigElement buildConfigElement(org.w3c.dom.Element root, org.springframework.extensions.config.element.GenericConfigElement cfgElem)
root
- ElementcfgElem
- GenericConfigElementCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.