setTestName method

Class: ConfigurationPlatform: NightwatchLanguage: JavaScript SDK:

Use this method to set the name of the test.


let configval = config.setTestName(testName);
config.testName = configval;
configval = config.testName;

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


The test name to be configured for the test.

Return value

Type: Configuration
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of the Configuration class.