getStatus method

Class: TestResultsPlatform: PlaywrightLanguage: JavaScript SDK:

Use this method to retrieve a status that represents the results of the test.

Syntax

let value = result.getStatus();
value = result.status;

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

Parameters

This method does not take any parameters.

Return value

Type: TestResultsStatus
Use this method to retrieve one of the following enumerated values:
  • TestResultsStatus.Passed
  • TestResultsStatus.Unresolved
  • TestResultsStatus.Failed
See TestResultsStatus for details.