pub struct TestStep {
pub step_id: String,
pub title: String,
pub category: StepCategory,
pub duration: Duration,
pub status: StepStatus,
pub error: Option<String>,
pub location: Option<String>,
pub parent_step_id: Option<String>,
pub metadata: Option<Value>,
pub steps: Vec<TestStep>,
}Expand description
A structured test step (maps to Playwright’s test.step()).
Fields§
§step_id: StringUnique step identifier (for parent/child tracking and reporter correlation).
title: String§category: StepCategory§duration: Duration§status: StepStatusStep completion status.
error: Option<String>§location: Option<String>Source location (e.g., “file.rs:42” or “feature.feature:10”).
parent_step_id: Option<String>Parent step ID for nesting.
metadata: Option<Value>Arbitrary metadata for domain-specific extensions (e.g., BDD keyword, tags). Reporters can use this for custom rendering without the core needing domain knowledge.
steps: Vec<TestStep>Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestStep
impl RefUnwindSafe for TestStep
impl Send for TestStep
impl Sync for TestStep
impl Unpin for TestStep
impl UnsafeUnpin for TestStep
impl UnwindSafe for TestStep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more