| Package | org.fluint.sequence |
| Class | public class SequenceRunner |
| Property | Defined by | ||
|---|---|---|---|
| numberOfSteps : int [read-only]
Returns number of steps in the sequence.
| SequenceRunner | ||
| Method | Defined by | ||
|---|---|---|---|
|
SequenceRunner(testCase:*)
Constructor.
| SequenceRunner | ||
|
addAssertHandler(assertHandler:Function, passThroughData:Object):void
Add a reference to the event handler that should be called if the sequence completes sucessfully. The handler is expected to have the follow signature:
| SequenceRunner | ||
|
addStep(step:ISequenceStep):void
Adds an ISequenceStep to the sequence.
| SequenceRunner | ||
|
continueSequence(event:Event):void
Called by the testCase when the next step in the sequence should begin.
| SequenceRunner | ||
|
Returns the ISequenceStep currently executing.
| SequenceRunner | ||
|
Returns the ISequenceStep currently executing.
| SequenceRunner | ||
|
getStep(stepIndex:int):ISequenceStep
Returns the ISequenceStep at a specified index.
| SequenceRunner | ||
|
run():void
Begins the execution of a sequence.
| SequenceRunner | ||
| numberOfSteps | property |
numberOfSteps:int [read-only]Returns number of steps in the sequence.
Implementation public function get numberOfSteps():int
| SequenceRunner | () | constructor |
public function SequenceRunner(testCase:*)Constructor.
ParameterstestCase:* — testCase within which is sequence is being run.
|
| addAssertHandler | () | method |
public function addAssertHandler(assertHandler:Function, passThroughData:Object):void
Add a reference to the event handler that should be called if the sequence completes sucessfully.
The handler is expected to have the follow signature:
public function handleEvent( event:Event, passThroughData:Object ):void {
}
assertHandler:Function — The original event object from the previous step.
|
|
passThroughData:Object — A generic object that can optionally be provided by
the developer when creating a new sequence.
|
| addStep | () | method |
public function addStep(step:ISequenceStep):voidAdds an ISequenceStep to the sequence.
Parametersstep:ISequenceStep — Step to be added.
|
| continueSequence | () | method |
public function continueSequence(event:Event):voidCalled by the testCase when the next step in the sequence should begin.
Parametersevent:Event — Event broadcast by the last step in the sequence.
|
| getExecutingStep | () | method |
public function getExecutingStep():ISequenceStepReturns the ISequenceStep currently executing.
ReturnsISequenceStep |
| getPendingStep | () | method |
public function getPendingStep():ISequencePendReturns the ISequenceStep currently executing.
ReturnsISequencePend |
| getStep | () | method |
public function getStep(stepIndex:int):ISequenceStepReturns the ISequenceStep at a specified index.
ParametersstepIndex:int |
ISequenceStep |
| run | () | method |
public function run():voidBegins the execution of a sequence.