com.flexiblewebsolutions.xdriveunit.loadtest
Class ThreadedTestRunner

java.lang.Object
  extended by com.flexiblewebsolutions.xdriveunit.loadtest.ThreadedTestRunner

public abstract class ThreadedTestRunner
extends java.lang.Object

Create threads to run concurrent tests.

Author:
Donavon Buss

Field Summary
protected  java.util.Vector _AllThreads
          A list of threads to be run
protected  DelayTimer _DelayTimer
          Timer that determines thread start offset
protected  boolean _RunTest
          Flag that determines if test will actually be run or not
 
Constructor Summary
ThreadedTestRunner()
           
 
Method Summary
 java.lang.String getTestMode()
          Retrieves name for this test run
protected abstract  java.io.File getTmpDirectory()
          Returns a file path used for temporary files.
 void runLoadTest(java.util.Vector pXML, LoadWebXDriveTestCase pTestCase, java.lang.String pConfigTemplate, ThreadCallback pTracer)
          Iterate through vector of StringBuffer input files and create a thread to process each one.
 void setTestMode(java.lang.String pTestMode)
          Sets name for this test run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_AllThreads

protected java.util.Vector _AllThreads
A list of threads to be run


_RunTest

protected boolean _RunTest
Flag that determines if test will actually be run or not


_DelayTimer

protected DelayTimer _DelayTimer
Timer that determines thread start offset

Constructor Detail

ThreadedTestRunner

public ThreadedTestRunner()
Method Detail

getTmpDirectory

protected abstract java.io.File getTmpDirectory()
Returns a file path used for temporary files.

Returns:
Path where temporary files are stored.

runLoadTest

public void runLoadTest(java.util.Vector pXML,
                        LoadWebXDriveTestCase pTestCase,
                        java.lang.String pConfigTemplate,
                        ThreadCallback pTracer)
Iterate through vector of StringBuffer input files and create a thread to process each one.

Parameters:
pXML - - List of StringBuffers which contain XML needed for test
pClassName - - Class of test class
pConfigTemplate - - Config file to be passed to test containing test methods, etc.

getTestMode

public java.lang.String getTestMode()
Retrieves name for this test run

Returns:
test run name used for output file naming

setTestMode

public void setTestMode(java.lang.String pTestMode)
Sets name for this test run

Parameters:
pTestMode - name of test run to be added to output files


Copyright © -2005 . All Rights Reserved.