TestStep
Represents a step in the [TestRun].
- testStep.category
- testStep.duration
- testStep.error
- testStep.location
- testStep.parent
- testStep.startTime
- testStep.steps
- testStep.title
- testStep.titlePath()
testStep.titlePath()
Added in: v1.10Returns a list of step titles from the root step down to this step.
testStep.category
Added in: v1.10- type: <string>
Step category to differentiate steps with different origin and verbosity. Built-in categories are:
hook
for fixtures and hooks initialization and teardownexpect
for expect callspw:api
for Playwright API calls.test.step
for test.step API calls.
testStep.duration
Added in: v1.10- type: <number>
Running time in milliseconds.
testStep.error
Added in: v1.10- type: <TestError>
Error thrown during the step execution, if any.
testStep.location
Added in: v1.10- type: <Location>
Optional location in the source where the step is defined.
testStep.parent
Added in: v1.10- type: <TestStep>
Parent step, if any.
testStep.startTime
Added in: v1.10- type: <[Date]>
Start time of this particular test step.
testStep.steps
Added in: v1.10List of steps inside this step.
testStep.title
Added in: v1.10- type: <string>
User-friendly test step title.