Skip to navigation

Step routing

A single routing entry on a step handler (onPass, onFail, onWarning, onSkip): an optional condition (if) plus exactly one of continue, stop (test), retry, or goToStep.

Referenced In

Fields

FieldTypeDescriptionDefault
ifone of:
- string
- array of string
Optional. A condition expression, or an array of expressions combined with logical AND.—
continuetrueOptional. Continue execution with the next step. Use to explicitly suppress a default handler behavior.—
stopstringOptional. Stop the test’s remaining steps in this context.

Accepted values: test
—
retryobject(Retry)Optional. Retry the current step.—
goToStepstringOptional. Identifier of the step to jump to, within the same test.

Minimum length: 1. Pattern: \S
—

Examples

{
"continue": true
}
{
"stop": "test"
}
{
"if": [
"$$platform == linux",
"$$outputs.exitCode == 0"
],
"goToStep": "verify"
}
{
"retry": {
"limit": 3,
"delay": 1000,
"backoff": "exponential"
}
}
{
"retry": {
"limit": 1
}
}