qat.gui
Class TestRunner

java.lang.Object
  extended byjava.lang.Thread
      extended byqat.gui.TestRunner
All Implemented Interfaces:
java.lang.Runnable

public class TestRunner
extends java.lang.Thread

This object is resposible for running a single or multiple tests. * It is implemented as a Thread to allow interuption of a running task. * If the test run is interrupted, the currently executing test must exit before * the stop is completed. * * @author webhiker * @version %W %E


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TestRunner(QAT p)
           
 
Method Summary
 java.lang.String getElapsedTime()
           
 java.lang.String getRemainingTime()
           
 int getRunProgress()
          Returns the number of tests from this run which have * already completed.
 int getRunTotal()
          Returns the total number of tests selected for this run, or * returns zero if no tests are running.
static java.lang.String getTimeString(java.util.Date d)
           
 boolean inEvaluationMode()
           
 void interrupt()
           
 boolean isRunning()
           
 void run()
           
 void setEvaluationMode(boolean m)
           
 void setProjectRoot(java.lang.String rootDirectory)
           
 void setRunList(java.util.ArrayList list)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestRunner

public TestRunner(QAT p)
Method Detail

setProjectRoot

public void setProjectRoot(java.lang.String rootDirectory)

run

public void run()

getRunProgress

public int getRunProgress()
Returns the number of tests from this run which have * already completed.


getRunTotal

public int getRunTotal()
Returns the total number of tests selected for this run, or * returns zero if no tests are running.


isRunning

public boolean isRunning()

getRemainingTime

public java.lang.String getRemainingTime()

getElapsedTime

public java.lang.String getElapsedTime()

getTimeString

public static java.lang.String getTimeString(java.util.Date d)

setRunList

public void setRunList(java.util.ArrayList list)

interrupt

public void interrupt()

inEvaluationMode

public boolean inEvaluationMode()

setEvaluationMode

public void setEvaluationMode(boolean m)


See QAT project for licensing details