TestResult
A result of a single TestCase run.
- testResult.attachments
- testResult.duration
- testResult.error
- testResult.retry
- testResult.startTime
- testResult.status
- testResult.stderr
- testResult.stdout
- testResult.steps
- testResult.workerIndex
#
testResult.attachments- type: <Array<Object>>
name
<string> Attachment name.contentType
<string> Content type of this attachment to properly present in the report, for example'application/json'
or'image/png'
.path
<void|string> Optional path on the filesystem to the attached file.body
<void|Buffer> Optional attachment body used instead of a file.
The list of files or buffers attached during the test execution through testInfo.attachments.
#
testResult.duration- type: <number>
Running time in milliseconds.
#
testResult.errorAn error thrown during the test execution, if any.
#
testResult.retry- type: <number>
When test is retries multiple times, each retry attempt is given a sequential number.
Learn more about test retries.
#
testResult.startTime- type: <[Date]>
Start time of this particular test run.
#
testResult.status- type: <"passed"|"failed"|"timedOut"|"skipped">
The status of this test result. See also testCase.expectedStatus.
#
testResult.stderrAnything written to the standard error during the test run.
#
testResult.stdoutAnything written to the standard output during the test run.
#
testResult.stepsList of steps inside this test run.
#
testResult.workerIndex- type: <number>
Index of the worker where the test was run.
Learn more about parallelism and sharding with Playwright Test.