Configurations
Configurations refer to the combination of operating system, browser, and device. With this API you can get list of configurations and create custom configurations. Configurations help you keep track of the status of Test Cases within a Test Run on different operating systems, browsers, and device combinations.
Get Configurations
Use this API to fetch all the system and custom configurations linked to test cases in a project.
This list is paginated; for more information, refer Pagination.
Request Parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
https://test-management.browserstack.com/api/v2/configurations
-
No parameter required.
Response Attributes 200 OK
json
Response
{
"success": true,
"configurations": [
{
"id": 5122204,
"name": "testing_config",
"os": null,
"os_version": null,
"device": null,
"browser": null,
"browser_version": null,
"is_system": false
},
{
"id": 4490607,
"name": "iOS - iPhone 13 latest",
"os": "iOS",
"os_version": "",
"device": "iPhone 13",
"browser": "",
"browser_version": "latest",
"is_system": false
}
],
"info": {
"page": 1,
"page_size": 30,
"count": 20,
"prev": null,
"next": null
}
}
-
id Integer
A unique identifier of the configuration.
-
name String
The name of the configuration.
-
os String
The operating system for the configuration.
-
os_version String
The version of the operating system.
-
device String
The device associated with the configuration.
- Show 4 more
-
browser String
The browser used in the configuration.
-
browser_version String
The version of the browser.
-
is_system Boolean
Indicates whether the configuration value is system-defined or user-defined.
-
success Boolean
API call is executed successfully.
Get Configuration by ID
Use this API to fetch both the system-defined and user-defined configuration details associated with a specific id. You will need the id
of the configuration.
Request Parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
https://test-management.browserstack.com/api/v2/configurations/{configuration-id}
-
configuration_id* String
Identifier of the configuration.
Response Attributes 200 OK
json
Response
{
"success": true,
"configuration": {
"id": 4490607,
"name": "iOS - iPhone 13 latest",
"os": "iOS",
"os_version": "",
"device": "iPhone 13",
"browser": "",
"browser_version": "latest",
"is_system": false
}
}
-
id Integer
A unique identifier of the configuration.
-
name String
The name of the configuration.
-
os String
The operating system for the configuration.
-
os_version String
The version of the operating system.
-
device String
The device associated with the configuration.
- Show 4 more
-
browser String
The browser used in the configuration.
-
browser_version String
The version of the browser.
-
is_system Boolean
Indicates whether the configuration value is system-defined or user-defined.
-
success Boolean
API call is executed successfully.
Add Custom Configuration
This API allows you to create and add new custom configuration.
Request Parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST https://test-management.browserstack.com/api/v2/configurations
-
No parameter required.
Request Body
Request Body
{
"name": "custom_config"
}
-
name String
The name of the configuration.
Response Attributes 200 OK
json
Response
{
"success": true,
"id": 123,
"name": "custom_config"
}
-
id Integer
A unique identifier of the configuration.
-
name String
The name of the custom configuration.
-
success Boolean
API call is executed successfully.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.