|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webtester.packages.config.configHandler
Handles parsing and validating the XML configuration file.
Field Summary | |
private static boolean |
bFirstVarAdded
Indicates whether a variable assignment has been added to the test case. |
private static globalConfig |
gConfig
Contains global configuration information. |
private static int |
iCounter
A counter used to maintain index counts for certain config values. |
private static int |
iParsingFailed
The value to return if parsing the XML document fails. |
private static java.lang.String |
sConfigErrors
Contains descriptions of any configuration errors encountered. |
private static java.lang.String |
sDefaultConfigFile
The configuration file being read. |
private static java.lang.String |
sDescription
The test case description. |
private static java.lang.String |
sLastData
The last DATA value added to the test case. |
private static java.lang.String |
sLastMethod
The last URL execution method added to the test case. |
private static java.lang.String |
sLastRegex
The last regular expressions added to the test case. |
private static java.lang.String |
sLastSleep
The last sleep value added to the test case. |
private static java.lang.String |
sLastURL
The last URL value added to the test case. |
private static java.lang.String |
sLastVar
The last variable assignment value added to the test case. |
private static java.lang.String |
sTempMethod
A temporary storage location for URL methods. |
private static testCaseConfig |
tConfig
Contains test case specific configuration information. |
Constructor Summary | |
configHandler()
|
Method Summary | |
void |
clearValues()
Clear any values that may have been stored by a previous instance. |
java.lang.String |
getConfigErrors()
Retrieve errors with the configuration file. |
globalConfig |
getGlobalConfiguration()
Return an object which contains global configuration values. |
testCaseConfig |
getTestCaseConfigurations()
Return an object which contains configuration values for each individual test case. |
int |
parseXMLDocument()
Parse the XML document an retrieve the configuration values. |
private void |
parseXMLNodes(org.w3c.dom.Node node)
Parse the XML document and save the information as it is retrieved. |
void |
setDefaultConfigFile(java.lang.String sFile)
Set the configuration filename which should be used. |
void |
setGlobalConfiguration(globalConfig gcfg)
Set the global configuration object. |
void |
setTestCaseConfiguration(testCaseConfig tcfg)
Set the test case configuration object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.lang.String sDescription
private static java.lang.String sDefaultConfigFile
private static int iCounter
private static globalConfig gConfig
private static testCaseConfig tConfig
private static java.lang.String sConfigErrors
private static java.lang.String sLastRegex
private static java.lang.String sLastData
private static java.lang.String sLastVar
private static java.lang.String sLastURL
private static java.lang.String sLastSleep
private static java.lang.String sLastMethod
private static java.lang.String sTempMethod
private static boolean bFirstVarAdded
private static final int iParsingFailed
Constructor Detail |
public configHandler()
Method Detail |
public void setGlobalConfiguration(globalConfig gcfg)
gcfg
- An instance of the global configuration objectpublic void setTestCaseConfiguration(testCaseConfig tcfg)
tcfg
- an instance of the test caes configuration.public void clearValues()
public void setDefaultConfigFile(java.lang.String sFile)
sFile
- a String which indicates the configuration file to usepublic java.lang.String getConfigErrors()
private void parseXMLNodes(org.w3c.dom.Node node)
node
- the parent node from which to begin parsingpublic int parseXMLDocument()
public globalConfig getGlobalConfiguration()
public testCaseConfig getTestCaseConfigurations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |