webtester.packages.apps
Class runTests

java.lang.Object
  |
  +--webtester.packages.apps.runTests

public class runTests
extends java.lang.Object

This application acquires the configuration file, and servers as a thread manager for executing test cases.

Author:
Aaron DeLong

Field Summary
private static globalConfig gConfig
          Contains global configuration information.
private static int iMinuteConversion
          Used to convert minutes to seconds.
private static int iSecConversion
          This is the conversion factor for going back and forth from seconds.
private static int iSleepTime
          The amount of time to wait for a thread to finish.
private static testCaseConfig tConfig
          Contains test case specific information.
 
Constructor Summary
runTests()
           
 
Method Summary
static void main(java.lang.String[] argv)
          The main method, the default entry point into the program.
private static java.util.ArrayList randomOrder(java.util.ArrayList aVals)
          Randomly order the test case descriptions.
private static boolean timeElapsed(long lStartTime, java.lang.String sEndTime)
          Determine if the test case has executed beyond the allotted time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gConfig

private static globalConfig gConfig
Contains global configuration information.


tConfig

private static testCaseConfig tConfig
Contains test case specific information.


iSleepTime

private static final int iSleepTime
The amount of time to wait for a thread to finish.

See Also:
Constant Field Values

iSecConversion

private static final int iSecConversion
This is the conversion factor for going back and forth from seconds.

See Also:
Constant Field Values

iMinuteConversion

private static final int iMinuteConversion
Used to convert minutes to seconds.

See Also:
Constant Field Values
Constructor Detail

runTests

public runTests()
Method Detail

main

public static void main(java.lang.String[] argv)
The main method, the default entry point into the program.

Parameters:
argv - contains command-line arguments

randomOrder

private static java.util.ArrayList randomOrder(java.util.ArrayList aVals)
Randomly order the test case descriptions.

Parameters:
aVals - a collection of test case descriptions
Returns:
an ArrayList with the values randomly ordered

timeElapsed

private static boolean timeElapsed(long lStartTime,
                                   java.lang.String sEndTime)
Determine if the test case has executed beyond the allotted time.

Parameters:
lStartTime - the time execution was started
sEndTime - how long the test cases should be executed
Returns:
FALSE if the allotted time has not expired