PlaybookReport class

The result of running a playbook: whether it passed, and each step.

toString() reads like Metro's output:

Playbook "sign_up" (natural) — passed in 12.4s
  ✓   239ms  Tap "Get started"
  ✓   512ms  Wait for page /sign-up

Constructors

PlaybookReport({required String name, required String speed, required List<PlaybookStepResult> steps, required Duration elapsed, bool stopped = false})
Creates a PlaybookReport.
const

Properties

elapsed → Duration
How long the run took.
final
failure → PlaybookStepResult?
The first failed step, looking inside nested steps, or null.
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
The playbook's name.
final
passed → bool
Whether every step passed and the run wasn't stopped.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speed → String
The name of the speed it ran at.
final
steps → List<PlaybookStepResult>
Each step's result, in order.
final
stopped → bool
Whether the run was stopped before it finished.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The report as JSON, as sent to Metro.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited