com.pushtotest.testmaker.XSTest.client
Class ControlRunner

java.lang.Object
  extended by java.lang.Thread
      extended by com.pushtotest.testmaker.XSTest.client.ControlRunner
All Implemented Interfaces:
java.lang.Runnable

public class ControlRunner
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ControlRunner(guiTestScenarioPanel panel, java.lang.String theFile, javax.swing.JPanel chart)
          Creates a new instance of ControlRunner
ControlRunner(java.lang.String theFile)
          Default builder
 
Method Summary
 boolean checkConsistency()
          Check test consistency
 void consoleRUN()
           
 void createUseCase(int uc)
           
 void generateUsecaseGraph(java.util.Vector<java.lang.String> files, TNTally myTally)
           
 java.util.Vector<java.lang.String> getFiles()
           
 java.lang.String getGeneralResultPath()
           
 java.util.HashMap<java.lang.String,com.pushtotest.tool.charts.PTTChart> getImages()
           
 java.lang.String getLogPath()
           
 java.lang.String getMonitorInfo()
           
 java.lang.String getResultPath()
          Get the saving pathh
 guiTestScenarioPanel getSlider()
           
 TNTally getTally()
           
 java.lang.String getTestName()
          Return the testname
 int maxUsecase()
          indicates the max number of usecase
 void pauseTest()
           
 void repaintRealTime()
          Repaint the real time graph Also prints update information
 void run()
          Runs the test.
 void runFunctionalTest()
          Run the test as a functional test
 void runScenario()
          Run the test
 void safeSleep()
           
 java.lang.String setNextusecase(int usecase)
           
 java.lang.String setPause(boolean paused)
          This funtion indicate that for this moment Control runner must stop or start again running use usecases indicate the status
 void stopMonitor()
          Stops a monitor test
 java.lang.String stopRunning(java.lang.String data)
           
 java.util.Properties TNConfig(java.lang.String cs)
           
 void writetRealTime()
          Repaint the real time graph Also prints update information
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

ControlRunner

public ControlRunner(guiTestScenarioPanel panel,
                     java.lang.String theFile,
                     javax.swing.JPanel chart)
Creates a new instance of ControlRunner


ControlRunner

public ControlRunner(java.lang.String theFile)
Default builder

Method Detail

getTestName

public java.lang.String getTestName()
Return the testname


setNextusecase

public java.lang.String setNextusecase(int usecase)

getMonitorInfo

public java.lang.String getMonitorInfo()

getTally

public TNTally getTally()

maxUsecase

public int maxUsecase()
indicates the max number of usecase


runFunctionalTest

public void runFunctionalTest()
Run the test as a functional test


getResultPath

public java.lang.String getResultPath()
Get the saving pathh


getGeneralResultPath

public java.lang.String getGeneralResultPath()

getLogPath

public java.lang.String getLogPath()

run

public void run()
Runs the test. Calls runScenario

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

runScenario

public void runScenario()
Run the test


getImages

public java.util.HashMap<java.lang.String,com.pushtotest.tool.charts.PTTChart> getImages()

stopMonitor

public void stopMonitor()
Stops a monitor test


consoleRUN

public void consoleRUN()

pauseTest

public void pauseTest()

repaintRealTime

public void repaintRealTime()
Repaint the real time graph Also prints update information


writetRealTime

public void writetRealTime()
Repaint the real time graph Also prints update information


getFiles

public java.util.Vector<java.lang.String> getFiles()

createUseCase

public void createUseCase(int uc)

safeSleep

public void safeSleep()

setPause

public java.lang.String setPause(boolean paused)
This funtion indicate that for this moment Control runner must stop or start again running use usecases indicate the status


stopRunning

public java.lang.String stopRunning(java.lang.String data)

getSlider

public guiTestScenarioPanel getSlider()

generateUsecaseGraph

public void generateUsecaseGraph(java.util.Vector<java.lang.String> files,
                                 TNTally myTally)

TNConfig

public java.util.Properties TNConfig(java.lang.String cs)

checkConsistency

public boolean checkConsistency()
Check test consistency