|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pushtotest.testnetwork.Scenario
public class Scenario
The Scenario class is a singleton that manages executions of a scenario.
| Method Summary | |
|---|---|
void |
abandon()
Abandon a loaded Scenario before it is executed. |
void |
abort()
Abort a running Scenario. |
void |
completion(java.lang.Thread tAgentRunner)
Mark a Scenario as completed. |
java.util.ArrayList |
getArguments()
Get the last loaded argument list. |
java.util.Hashtable |
getFileList()
Get the last loaded file list. |
static Scenario |
getInstance()
Get the instance of the Scenario singleton. |
java.lang.String |
getName()
Get the last loaded scenario name. |
java.util.Hashtable |
getResults()
Get the return information from the last executed scenario. |
java.lang.String |
getRundir()
Get the last loaded rundir. |
java.lang.String |
getScript()
Get the last loaded Script name. |
java.util.Hashtable |
getSnapshot()
Get the last loaded scenario Snapshot. |
java.lang.String |
getState()
Get the current execution state of the scenario. |
java.lang.String |
getStatus()
Get the execution status of a Scenario. |
int |
getSyncFlag()
Get the Sync Flag. |
java.lang.String |
getWhence()
Get the last loaded scenario whence parameter. |
void |
load(java.lang.String sWhence,
java.lang.String sName,
java.lang.String sScript,
java.lang.String sTempdir,
java.util.ArrayList alsArguments,
java.lang.String srootPath)
Load an execution scenario. |
void |
release()
Release this Scenario so that it can be available for other executions. |
void |
run(int usecase)
Run an usecase from a loaded Scenario. |
void |
setSyncFlag(int iFlag)
Set the Sync Flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Scenario getInstance()
public java.lang.String getState()
public java.lang.String getWhence()
loadpublic java.lang.String getName()
loadpublic java.util.Hashtable getSnapshot()
setSnapshotpublic int getSyncFlag()
setSnapshotpublic void setSyncFlag(int iFlag)
int - The Sync Flag.public java.lang.String getScript()
loadpublic java.lang.String getRundir()
loadpublic java.util.ArrayList getArguments()
loadpublic java.util.Hashtable getFileList()
public java.util.Hashtable getResults()
public void load(java.lang.String sWhence,
java.lang.String sName,
java.lang.String sScript,
java.lang.String sTempdir,
java.util.ArrayList alsArguments,
java.lang.String srootPath)
throws com.pushtotest.testnetwork.Scenario.StateException,
com.pushtotest.testnetwork.Scenario.PrepException
sWhence - An indicator of where the request came from.sName - The name of the scenario.sScript - The script to execute.sRundir - The directory to use for execution.alsArguments - The list of arguments to pass to the
python processor.
StateException - If the TestNode state is not PrepException - If the execution directory cannot be created.
com.pushtotest.testnetwork.Scenario.StateException
com.pushtotest.testnetwork.Scenario.PrepException
public void run(int usecase)
throws com.pushtotest.testnetwork.Scenario.StateException,
java.lang.Throwable
StateException - If the TestNode state is not com.pushtotest.testnetwork.Scenario.StateException
java.lang.Throwable
public void abort()
throws com.pushtotest.testnetwork.Scenario.StateException
StateException - If the TestNode state is not com.pushtotest.testnetwork.Scenario.StateException
public void abandon()
throws com.pushtotest.testnetwork.Scenario.StateException
StateException - If the TestNode state is not com.pushtotest.testnetwork.Scenario.StateExceptionpublic java.lang.String getStatus()
public void completion(java.lang.Thread tAgentRunner)
throws com.pushtotest.testnetwork.Scenario.CallerException
CallerException - If called by someone other than the associated AgentRunner.
com.pushtotest.testnetwork.Scenario.CallerException
public void release()
throws com.pushtotest.testnetwork.Scenario.StateException,
java.lang.SecurityException
StateException - If the TestNode state is not com.pushtotest.testnetwork.Scenario.StateException
java.lang.SecurityException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||