com.pushtotest.testmaker.XSTest.xml.TestScenario
Class TestscenarioRunner

java.lang.Object
  extended by com.pushtotest.testmaker.XSTest.xml.TestScenario.TestscenarioRunner

public class TestscenarioRunner
extends java.lang.Object


Field Summary
static int ALIVE
           
static int ENDED
           
static int ENDED_ERRORS
           
static int ENDED_SUCC
           
static int ERRORS
           
static int PAUSED
           
 
Constructor Summary
TestscenarioRunner(java.lang.String xmlreader, java.lang.String thisNodeName, java.lang.String rootpath)
          Creates a new instance of TestscenarioRunner remotely using the rootpath.
TestscenarioRunner(XMLReader config, java.lang.String thisNodeName)
          Creates a new instance of TestscenarioRunner.
 
Method Summary
 boolean complete()
          Indicates if the usecase is completed it calls the testusecase complete
 void createDefaultDirectory()
          Creates a directory using the information in the XML.
 void createDPLs()
           
 double currentFailedTransaction()
          Indicates the number of the current failed transaction
 double currentSuccessTransaction()
          Indicates the number of the current succesfully transaction
 int getCurrentStatus()
          0 - Test operating normally.
 java.util.Hashtable getSnapshot()
           
 java.lang.String getSnapshotPAAS()
           
 java.lang.String getStatus()
           
 TestusecaseRunner getTestusecaseRunner()
          get the real runner of the test
 void loadJar()
           
 void loadJarRemotely()
          To load the jars file remotely
 boolean pause()
           
 boolean resume()
           
 void runUsecase(int usecaseNumber)
           
 void setRootDir(java.lang.String sRootDir)
          Sets the root directory
 void startRecording()
           
 boolean stop()
           
 void stopTestusecase()
          stopTestusecase: Stop the test use case stored on currentTestusecase by calling it’s stop function.
 boolean warnUpComplete()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIVE

public static int ALIVE

ERRORS

public static int ERRORS

PAUSED

public static int PAUSED

ENDED

public static int ENDED

ENDED_SUCC

public static int ENDED_SUCC

ENDED_ERRORS

public static int ENDED_ERRORS
Constructor Detail

TestscenarioRunner

public TestscenarioRunner(java.lang.String xmlreader,
                          java.lang.String thisNodeName,
                          java.lang.String rootpath)
Creates a new instance of TestscenarioRunner remotely using the rootpath.

Parameters:
XMLReader - that represents the testscenario Not tested

TestscenarioRunner

public TestscenarioRunner(XMLReader config,
                          java.lang.String thisNodeName)
Creates a new instance of TestscenarioRunner.

Parameters:
XMLReader - that represents the testscenario Not tested
Method Detail

getCurrentStatus

public int getCurrentStatus()
0 - Test operating normally. 1 - Test running and encountered one or more exceptional conditions. 2 - Test paused. 3 - Test ended. 5 - ended succesfully 6 - ended with errors


pause

public boolean pause()

resume

public boolean resume()

stop

public boolean stop()

getSnapshotPAAS

public java.lang.String getSnapshotPAAS()

getTestusecaseRunner

public TestusecaseRunner getTestusecaseRunner()
get the real runner of the test


setRootDir

public void setRootDir(java.lang.String sRootDir)
Sets the root directory


loadJar

public void loadJar()

loadJarRemotely

public void loadJarRemotely()
To load the jars file remotely


createDPLs

public void createDPLs()

createDefaultDirectory

public void createDefaultDirectory()
Creates a directory using the information in the XML. testscenario->basics-> defaultdirectory. Not tested


runUsecase

public void runUsecase(int usecaseNumber)

warnUpComplete

public boolean warnUpComplete()

getStatus

public java.lang.String getStatus()

startRecording

public void startRecording()

getSnapshot

public java.util.Hashtable getSnapshot()

complete

public boolean complete()
Indicates if the usecase is completed it calls the testusecase complete


currentSuccessTransaction

public double currentSuccessTransaction()
Indicates the number of the current succesfully transaction


currentFailedTransaction

public double currentFailedTransaction()
Indicates the number of the current failed transaction


stopTestusecase

public void stopTestusecase()
stopTestusecase: Stop the test use case stored on currentTestusecase by calling it’s stop function. Not tested