pub struct Step {Show 16 fields
pub index: StepIndex,
pub kind: StepKind,
pub location: SourceLocation,
pub virtual_start: VirtualDuration,
pub virtual_end: VirtualDuration,
pub events: Vec<TraceEvent>,
pub messages: Vec<TraceMessage>,
pub tasks: Vec<TraceTask>,
pub state_diff: Option<String>,
pub attempts: Vec<Attempt>,
pub log: Vec<LogLine>,
pub tree_before: BlobRef<Yaml>,
pub tree_after: BlobRef<Yaml>,
pub frame_before: Option<BlobRef<Png>>,
pub frame_after: Option<BlobRef<Png>>,
pub outcome: StepOutcome,
}Expand description
One call the test made on the harness: an action, an expect, a clock advance, a task
release or a window change. Times are measured from boot.
Fields§
§index: StepIndexIts position in the trace.
kind: StepKindWhat the test asked for.
location: SourceLocationThe line of the test that made the call.
virtual_start: VirtualDurationWhen the step began.
virtual_end: VirtualDurationWhen it ended.
events: Vec<TraceEvent>The input events delivered during the step.
messages: Vec<TraceMessage>The messages produced during the step.
tasks: Vec<TraceTask>Task lifecycle changes during the step.
state_diff: Option<String>A unified diff of the state’s Debug text, when the test asked for state tracing.
attempts: Vec<Attempt>Each evaluation of an expect.
log: Vec<LogLine>What the harness did on the way, such as waiting for a node to become actionable, scrolling it into view and where it clicked. Left out of the file when empty.
tree_before: BlobRef<Yaml>The tree before the step, which is the previous step’s tree after.
tree_after: BlobRef<Yaml>The tree once the step settled.
frame_before: Option<BlobRef<Png>>The frame before the step, unless the frame policy or the size cap left it out.
frame_after: Option<BlobRef<Png>>The frame once the step settled, unless the frame policy or the size cap left it out.
outcome: StepOutcomeHow it ended.