StepResult class
Encapsulates the outcome, diagnostic data, and failure tracking of an executed scenario step.
Constructors
- StepResult.failed(String? errorMessage, StackTrace? stackTrace)
- Creates a failure result containing diagnostic context and stack trace details from the error.
- StepResult.nothing()
- Creates a neutral result signifying no action or evaluation took place.
- StepResult.passed()
- Creates a successful result indicating the step ran perfectly.
- StepResult.skipped()
- Creates a result indicating the step was skipped to protect subsequent test workflows.
Properties
- errorMessage → String?
-
final
- hasFailed → bool
-
Returns true if this specific result represents an execution failure state.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
final
- status → StepStatus
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited