Get automation coverage API in Test Reporting & Analytics
Use this API to retrieve the automation coverage for a given project. Automation coverage is calculated as the ratio of automated test cases to the total test cases in a project.
get automation coverage
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
https://api-automation.browserstack.com/ext/v1/projects/automation-coverage?project_name=sample-project
-
project_name* String
Specify the name of the project for which you want to retrieve the automation coverage.
Response attributes 200 OK JSON
Response
{
"project_id": 12345,
"project_name": "sample-project",
"total_test_case_count": 68,
"automated_test_case_count": 68,
"automation_coverage_percent": 100.0,
"calculated_at": "2026-04-06T05:52:04.719380433Z"
}
-
project_id Integer
Unique ID of the project.
-
project_name String
Name of the project.
-
total_test_case_count Integer
Total number of test cases in the project.
-
automated_test_case_count Integer
Number of test cases that have been automated.
-
automation_coverage_percent Float
Percentage of automated test cases out of the total, calculated as (automated_test_case_count / total_test_case_count) × 100.
-
calculated_at String
Timestamp of when the automation coverage was last calculated.
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.