Interface AttemptEndings
interface AttemptEndings {
willFail(reason: string | Reason): StepScript;
willSkip(): StepScript;
willSkipBecause(reason: string | Reason): StepScript;
willSucceed(): StepScript;
willTerminateAbnormally(errorMessage: string): StepScript;
}
willFail(reason: string | Reason): StepScript;
willSkip(): StepScript;
willSkipBecause(reason: string | Reason): StepScript;
willSucceed(): StepScript;
willTerminateAbnormally(errorMessage: string): StepScript;
}
Hierarchy (View Summary)
- AttemptEndings
Index
Methods
will Fail
-
The attempts fail, for
reason, or a reason with only this code.Parameters
- reason: string | Reason
Returns StepScript
will Skip
-
The step skips itself, giving no reason.
Returns StepScript
will Skip Because
-
The step skips itself, for
reason, or a reason with only this code.Parameters
- reason: string | Reason
Returns StepScript
will Succeed
-
The attempts succeed.
Returns StepScript
will Terminate Abnormally
-
The attempts terminate abnormally, with an error carrying
errorMessage.Parameters
- errorMessage: string
Returns StepScript
How the attempts chosen end: the outcome the step reports, with the same consequences, or an abnormal termination, as an error escaping its
run.