|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.extensions.TestDecorator | +--junit.extensions.TestSetup | +--org.exolab.jmscts.core.AbstractTestRunner | +--org.exolab.jmscts.core.StressTestRunner
This class enables stress test cases to be run against different JMS providers
The provider configuration file path is passed at construction. This contains a list of providers to run the tests against.
Argument | Description | Required |
config | the provider configuration file path | No |
output | the coverage report output directory | No |
filter | the test filter configuration file path | No |
port | the registry port | No |
Fields inherited from class org.exolab.jmscts.core.AbstractTestRunner |
DEFAULT_PORT |
Fields inherited from class junit.extensions.TestDecorator |
fTest |
Constructor Summary | |
StressTestRunner(java.lang.Class test,
java.lang.String[] args)
Construct an instance using the class of the test case, and the list of arguments to configure the provider |
|
StressTestRunner(junit.framework.Test test,
java.lang.String[] args)
Construct an instance with the test to run, and the list of arguments to configure test suite. |
Method Summary | |
void |
basicRun(junit.framework.TestResult result)
Runs the test cases against each provider |
TestContext |
createContext()
Creates a test context |
void |
report(java.lang.String path)
Generate a stress test report, writing it out to the specified path |
Methods inherited from class org.exolab.jmscts.core.AbstractTestRunner |
abort, getHome, getPort, getProvider, mergeSuites, registerServices, setUp, snapshot, startServices, stop, tearDown |
Methods inherited from class junit.extensions.TestSetup |
run |
Methods inherited from class junit.extensions.TestDecorator |
countTestCases, getTest, 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 |
Constructor Detail |
public StressTestRunner(java.lang.Class test, java.lang.String[] args)
test
- a class implementing the ConnectionFactoryTestCase
and Test
interfacesargs
- command line argumentspublic StressTestRunner(junit.framework.Test test, java.lang.String[] args)
test
- the test to runargs
- command line argumentsMethod Detail |
public void report(java.lang.String path) throws java.lang.Exception
report
in class AbstractTestRunner
path
- the path to write the reportjava.lang.Exception
- if the report can't be written, or the test
isn't runningpublic void basicRun(junit.framework.TestResult result)
basicRun
in class AbstractTestRunner
result
- the instance to collect results inpublic TestContext createContext()
createContext
in class AbstractTestRunner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |