Payload class
The customer-visible snapshot of one test result.
Constructors
-
Payload({required List<
StepJson> setup, required List<StepJson> test, required List<StepJson> teardown, required List<Map< attachments, required String errorMessage, required String comment, bool hasFailedStep = false, bool hasStepError = false})String, Object?> > - Builds a payload snapshot. Runners use snapshotPayload.
Properties
-
allSteps
→ Iterable<
StepJson> -
Every step of every section, in section order.
no setter
-
attachments
→ List<
Map< String, Object?> > -
Result-level attachments.
final
- comment → String
-
Result-level comment (skip reason, notes recorded outside a step).
final
- errorMessage → String
-
Result-level fail text (empty when a step carries it).
final
- hasFailedStep → bool
-
Sticky: any step finished Failed (O(1) for
payloadHasFailedStep).final - hashCode → int
-
The hash code for this object.
no setterinherited
- hasStepError → bool
-
Sticky: any step with non-empty errorMessage (O(1) for
payloadHasStepError).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
setup
→ List<
StepJson> -
Steps recorded in the Setup section, in preorder.
final
-
teardown
→ List<
StepJson> -
Steps recorded in the Teardown section, in preorder.
final
-
test
→ List<
StepJson> -
Steps recorded in the Test section, in preorder.
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