getTestResults method

Class: TestResultContainerPlatform: PlaywrightLanguage: JavaScript SDK:

Returns an object with the test results for this test.

Syntax

let value = obj.getTestResults();
value = obj.testResults;

Note that this feature is available as both a method and a property.

Parameters

This method does not take any parameters.

Return value

Type: TestResults