Organize tests

You can organize your automated test sessions by using name, build and project capabilities on BrowserStack. These capabilities define how your test sessions are grouped together and accessed on the App Automate dashboard and REST API. All these capabilities are optional.

Capability Description Values
name A unique identifer for your test session String
Note that only letters (A-Z, a-z), digits (0-9), periods (.), colons (:) and underscores (_) are allowed. Any other characters are ignored.
build A unique identifier to logically group multiple test sessions together String
Note that only letters (A-Z, a-z), digits (0-9), periods (.), colons (:) and underscores (_) are allowed. Any other characters are ignored.
Default: Untitled Build
project A unique identifier to logically group multiple builds together String
Note that only letters (A-Z, a-z), digits (0-9), periods (.), colons (:) and underscores (_) are allowed. Any other characters are ignored.
Default: Untitled Project

Example :

DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("project", "MySampleProject");
desiredCapabilities.setCapability("build", "MySampleBuild");
desiredCapabilities.setCapability("name", "MySampleTest");
var capabilities = {
	'project': 'MySampleProject',
    'build': 'MySampleBuild',
    'name': 'MySampleTest'
}
DesiredCapabilities capability = new DesiredCapabilities();
capability.SetCapability("project", "MySampleProject");
capability.SetCapability("build", "MySampleBuild");
capability.SetCapability("name", "MySampleTest");
$capabilities = new DesiredCapabilities();
$capabilities->setCapability("project", "MySampleProject");
$capabilities->setCapability("build", "MySampleBuild");
$capabilities->setCapability("name", "MySampleTest");
desired_cap = {
	'project': 'MySampleProject',
    'build': 'MySampleBuild',
    'name': 'MySampleTest'
}
desired_caps = {
    'project': 'MySampleProject',
    'build': 'MySampleBuild',
    'name': 'MySampleTest'
}
Note: It’s best practice to group all test sessions executed from a single CI/CD build job under a unique build name.