|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.flexiblewebsolutions.xdriveunit.XDriveTestCase
public abstract class XDriveTestCase
A TestCase implementation that uses XML files to drive test behavior
Field Summary | |
---|---|
protected java.lang.StringBuffer |
_TestInput
Data that will be available to test methods during execution. |
protected java.lang.String |
_ThreadName
Name of thread for differentiating test instances. |
Constructor Summary | |
---|---|
protected |
XDriveTestCase()
Internal method only. |
|
XDriveTestCase(java.lang.String pName,
java.lang.StringBuffer pTestInput,
java.lang.StringBuffer pTestOptions,
java.lang.String pThreadName)
Init the web client test case |
Method Summary | |
---|---|
protected boolean |
checkBooleanParameter(java.lang.String pPropName)
Retrieve property from Map and return it's boolean value |
java.lang.String |
getClassName()
|
protected java.io.File |
getFile(java.lang.String pFilePath)
Attempts to load requested file from getTestDirectory and then from the current directory |
java.io.File |
getTestDirectory()
|
protected java.util.HashMap |
getTestOptions()
|
java.io.File |
getTestTmpDirectory()
|
protected junit.framework.Test |
init(java.lang.String pConfigFile)
Creates the test suite using an XML configuration file. |
protected junit.framework.Test |
init(java.lang.StringBuffer pConfigInfo,
java.lang.String pThreadName)
Builds a test suite based on a configuration String. |
protected void |
setupTestOptions(java.lang.StringBuffer pTestOptions)
Parse out the passed in xml string for different options to be applied to all tests |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.StringBuffer _TestInput
protected java.lang.String _ThreadName
Constructor Detail |
---|
public XDriveTestCase(java.lang.String pName, java.lang.StringBuffer pTestInput, java.lang.StringBuffer pTestOptions, java.lang.String pThreadName)
pName
- -
Name of test to be runpTestInput
- -
data needed for input during testpTestOptions
- -
different options that control behavior of all testspTheadName
- -
User supplied name of thread running testprotected XDriveTestCase()
Method Detail |
---|
protected java.util.HashMap getTestOptions()
protected void setupTestOptions(java.lang.StringBuffer pTestOptions)
pTestOptions
- -
xml containing test optionsprotected boolean checkBooleanParameter(java.lang.String pPropName)
pPropName
-
protected junit.framework.Test init(java.lang.String pConfigFile) throws MissingConfigException
pConfigFile
- -
Relative path of file from TestDirectory setting or current
directory
MissingConfigException
protected java.io.File getFile(java.lang.String pFilePath) throws java.io.FileNotFoundException
pFilePath
- -
relative path to file
java.io.FileNotFoundException
protected junit.framework.Test init(java.lang.StringBuffer pConfigInfo, java.lang.String pThreadName)
pConfigInfo
- StringBuffer which contains XML configuration for the test.pThreadName
- Name to be used to differeniate different threads running same
test.
public java.lang.String getClassName()
public java.io.File getTestDirectory()
public java.io.File getTestTmpDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |