Skip to main content
Version: 1.15

TestStep

Represents a step in the [TestRun].

testStep.titlePath()#

Returns a list of step titles from the root step down to this step.

testStep.category#

Step category to differentiate steps with different origin and verbosity. Built-in categories are:

  • hook for fixtures and hooks initialization and teardown
  • expect for expect calls
  • pw:api for Playwright API calls.
  • test.step for test.step API calls.

testStep.duration#

Running time in milliseconds.

testStep.error#

An error thrown during the step execution, if any.

testStep.parent#

Parent step, if any.

testStep.startTime#

  • type: <[Date]>

Start time of this particular test step.

testStep.steps#

List of steps inside this step.

testStep.title#

User-friendly test step title.