setBranchName method

Class: ConfigurationPlatform: NightwatchLanguage: JavaScript SDK:

Use this method to set the branch used for the baseline of this run.


let configval = config.setBranchName(branchName);
config.branchName = configval;
configval = config.branchName;

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


The branch name to be used by the configuration.

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.