|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--MicroTAPAS.ScriptHandler
Handles the execution of a script and logs the result for each executed command.
| Field Summary | |
java.util.Vector |
log
The log that contains all the results from executed commands. |
| Constructor Summary | |
ScriptHandler(ControlInterface pParent,
java.lang.String pScriptFile,
boolean pStopOnError)
Constructor |
|
| Method Summary | |
void |
clearLog()
Clears all test results from the action log. |
TestResult |
executeCommand(java.lang.String cmd,
java.lang.String[] args,
boolean expectSuccess,
long delay)
Executes one single command after a delay of 'delay' milliseconds. |
java.lang.String |
log2StringLong()
Converts the stored test results to a string. |
java.lang.String |
log2StringShort()
Converts the stored test results to a string, short format (one liners). |
TestResult |
logAction(java.lang.String cmd,
java.lang.String[] args,
boolean expectSuccess,
RequestResult rr,
long timeUsed)
Adds a TestResult to the action log |
void |
run()
Starts the thread that executes a script |
void |
startScript()
Starts the execution of the script. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.util.Vector log
| Constructor Detail |
public ScriptHandler(ControlInterface pParent,
java.lang.String pScriptFile,
boolean pStopOnError)
| Method Detail |
public void startScript()
public TestResult executeCommand(java.lang.String cmd,
java.lang.String[] args,
boolean expectSuccess,
long delay)
cmd - The TAPAS command to be executed.args - Any arguments to the command.expectSuccess - True if one expect the command to be executed successfully.delay - Delays the execution of the command by 'delay' milliseconds.
public void run()
run in interface java.lang.Runnable
public TestResult logAction(java.lang.String cmd,
java.lang.String[] args,
boolean expectSuccess,
RequestResult rr,
long timeUsed)
cmd - The command that was executedargs - The command argumentsexpectSuccess - Indicates if the command was expected to be successfulrr - The RequestResult of the executed commandtimeUsed - The time used to executed the command (in milliseconds)public void clearLog()
public java.lang.String log2StringLong()
public java.lang.String log2StringShort()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||