TestStep
Represents a step in the [TestRun].
- testStep.titlePath()
- testStep.category
- testStep.duration
- testStep.error
- testStep.parent
- testStep.startTime
- testStep.steps
- testStep.title
#
testStep.titlePath()Returns a list of step titles from the root step down to this step.
#
testStep.category- 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- type: <number>
Running time in milliseconds.
#
testStep.errorAn error thrown during the step execution, if any.
#
testStep.parentParent step, if any.
#
testStep.startTime- type: <[Date]>
Start time of this particular test step.
#
testStep.stepsList of steps inside this step.
#
testStep.title- type: <string>
User-friendly test step title.