The information in this topic may be out of date. The current SDK reference guide has moved here.

getStatus method

Class: TestResultsPlatform: NightwatchLanguage: JavaScript SDK:

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


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

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


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.