getBranchName method

Class: TestResultsPlatform: PlaywrightLanguage: JavaScript SDK:

Use this method to retrieve the branch name of the test.


let value = result.getBranchName();
value = result.branchName;

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 branch name.