| java.lang.Object abbot.script.StepRunner
All known Subclasses: abbot.script.ForkedStepRunner,
StepRunner | public class StepRunner (Code) | | Provides control and tracking of the execution of a step or series of
steps. By default the runner stops execution on the first encountered
failure/error. The running environment is preserved to the extent
possible, which includes discarding any GUI components created by the
code under test.
If you wish to preserve the application state when there is an error,
you can use the method
StepRunner.setTerminateOnError(boolean) .
|
StepRunner | public StepRunner()(Code) | | This ctor uses a new instance of TestHierarchy as the
default Hierarchy. Note that any existing GUI components at the time
of this object's creation will be ignored.
|
clearErrors | protected void clearErrors()(Code) | | |
fireStepEnd | protected void fireStepEnd(Step step)(Code) | | |
fireStepEvent | protected void fireStepEvent(StepEvent event)(Code) | | If this is used to propagate a failure/error, be sure to invoke
setError on the step first.
|
fireStepProgress | protected void fireStepProgress(Step step, int val)(Code) | | |
fireStepStart | protected void fireStepStart(Step step)(Code) | | |
getHierarchy | public Hierarchy getHierarchy()(Code) | | The designated hierarchy for this StepRunner ,or null if none. |
getStopOnError | public boolean getStopOnError()(Code) | | |
getStopOnFailure | public boolean getStopOnFailure()(Code) | | |
getTerminateOnError | public boolean getTerminateOnError()(Code) | | |
installSecurityManager | protected synchronized void installSecurityManager()(Code) | | Install a security manager to ensure we prevent the AUT from
exiting and can clean up when it tries to.
|
removeSecurityManager | protected synchronized void removeSecurityManager()(Code) | | |
runStep | protected void runStep(Step step) throws Throwable(Code) | | Main run method, which stores any failures or exceptions for later
retrieval. Any step will fire STEP_START events to all registered
StepListener s on starting, and exactly one
of STEP_END, STEP_FAILURE, or STEP_ERROR upon termination. If
stopOnFailure/stopOnError is set false, then both STEP_FAILURE/ERROR
may be sent in addition to STEP_END.
|
setStopOnError | public void setStopOnError(boolean stop)(Code) | | |
setStopOnFailure | public void setStopOnFailure(boolean stop)(Code) | | |
setTerminateOnError | public void setTerminateOnError(boolean state)(Code) | | Set whether the application under test should be terminated when an
error is encountered and script execution stopped. The default
implementation always terminates.
|
stop | public void stop()(Code) | | Stop execution of the script after the current step completes. The
launched application will be left in its current state.
|
stop | public void stop(boolean terminate)(Code) | | Stop execution, indicating whether to terminate the app.
|
stopped | public boolean stopped()(Code) | | Return whether the runner has been stopped.
|
terminate | public void terminate()(Code) | | Dispose of any extant windows and restore any saved environment
state.
|
|
|