English · Node.js
Appearance
English · Node.js
Appearance
A result of a single TestCase run.
The list of annotations applicable to the current test. Includes:
test.(call)() and test.describe();test.skip(), test.fixme() and test.fail();testInfo.annotations during the test execution.Annotations are available during test execution through testInfo.annotations.
Learn more about test annotations.
Type
Array<Object>The list of files or buffers attached during the test execution through testInfo.attachments.
Type
Array<Object>Running time in milliseconds.
Type
floatFirst error thrown during test execution, if any. This is equal to the first element in testResult.errors.
Type
TestErrorErrors thrown during the test execution.
Type
Array<TestError>The index of the worker between 0 and workers - 1. It is guaranteed that workers running at the same time have a different parallelIndex.
Type
intWhen test is retried multiple times, each retry attempt is given a sequential number.
Learn more about test retries.
Type
intStart time of this particular test run.
Type
DateThe status of this test result. See also testCase.expectedStatus.
Type
"passed" | "failed" | "timedOut" | "skipped" | "interrupted"Anything written to the standard error during the test run.
Type
Array<string | Buffer>Anything written to the standard output during the test run.
Type
Array<string | Buffer>List of steps inside this test run.
Type
Array<TestStep>Index of the worker where the test was run. If the test was not run a single time, for example when the user interrupted testing, the only result will have a workerIndex equal to -1.
Learn more about parallelism and sharding with Playwright Test.
Type
int