org.exolab.jmscts.core
Class StressTestRunner

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.extensions.TestDecorator
              |
              +--junit.extensions.TestSetup
                    |
                    +--org.exolab.jmscts.core.AbstractTestRunner
                          |
                          +--org.exolab.jmscts.core.StressTestRunner
All Implemented Interfaces:
junit.framework.Test

public class StressTestRunner
extends AbstractTestRunner

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.

Parameters

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

Version:
$Revision: 1.3 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson

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

StressTestRunner

public 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
Parameters:
test - a class implementing the ConnectionFactoryTestCase and Test interfaces
args - command line arguments

StressTestRunner

public 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.
Parameters:
test - the test to run
args - command line arguments
Method Detail

report

public void report(java.lang.String path)
            throws java.lang.Exception
Generate a stress test report, writing it out to the specified path
Overrides:
report in class AbstractTestRunner
Parameters:
path - the path to write the report
Throws:
java.lang.Exception - if the report can't be written, or the test isn't running

basicRun

public void basicRun(junit.framework.TestResult result)
Runs the test cases against each provider
Overrides:
basicRun in class AbstractTestRunner
Parameters:
result - the instance to collect results in

createContext

public TestContext createContext()
Creates a test context
Overrides:
createContext in class AbstractTestRunner
Returns:
a new test context


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.