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

getName method

Class: TestResultsPlatform: Selenium 4Language: JavaScript SDK:

Use this method to retrieve the name of the test.


let value = result.getName();
value =;

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


This method does not take any parameters.

Return value

Type: string
The name of the test.