webtester.packages.apps
Class runTestsGUI

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

public class runTestsGUI
extends java.lang.Object

This class provides a GUI frontend for users to execute existing configuration files.

Author:
Aaron DeLong

Field Summary
private static globalConfig gConfig
          Contains global configuration information.
private static int iColumns
          Number of columns for the text area.
private static int iDividerLocation
          The divider location for the split pane.
private static int iMinuteConversion
          Used to convert minutes to seconds.
private static int iRows
          Number of rows for the text area.
private static int iSecConversion
          This is the conversion factor for going back and forth from seconds.
private static int iSleepTime
          Default time to sleep when monitoring threads.
private static int iTextLimit
          The maximum number of characters displayed in the text area.
private static java.lang.String sConfigFile
          The configuration file being executed.
private static java.io.File selectedFile
          The last file selected.
private static testCaseConfig tConfig
          Contains test case specific information.
private static javax.swing.JTextArea text
          The text area used to display information to the user.
 
Constructor Summary
runTestsGUI()
           
 
Method Summary
static void main(java.lang.String[] argv)
          The main method, the entry point into the program.
private static java.util.ArrayList randomOrder(java.util.ArrayList aVals)
          Randomly order the test case descriptions.
private static void runTests(configHandler config)
          Execute the test cases specified.
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

selectedFile

private static java.io.File selectedFile
The last file selected.


gConfig

private static globalConfig gConfig
Contains global configuration information.


tConfig

private static testCaseConfig tConfig
Contains test case specific information.


sConfigFile

private static java.lang.String sConfigFile
The configuration file being executed.


iRows

private static final int iRows
Number of rows for the text area.

See Also:
Constant Field Values

iColumns

private static final int iColumns
Number of columns for the text area.

See Also:
Constant Field Values

iSleepTime

private static final int iSleepTime
Default time to sleep when monitoring threads.

See Also:
Constant Field Values

text

private static javax.swing.JTextArea text
The text area used to display information to the user.


iDividerLocation

private static final int iDividerLocation
The divider location for the split pane.

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

iTextLimit

private static final int iTextLimit
The maximum number of characters displayed in the text area.

See Also:
Constant Field Values
Constructor Detail

runTestsGUI

public runTestsGUI()
Method Detail

runTests

private static void runTests(configHandler config)
Execute the test cases specified.

Parameters:
config - contains configuration objects

main

public static void main(java.lang.String[] argv)
The main method, the 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