Get

  • GET
  • /workspaces
  • /:workspace_domain
  • /projects
  • /:project_name
  • /unit-tests
  • /suites
  • /:suite_id
  • /sessions
  • /:session_id
  • /test-groups
  • /:test_group_id
  • /cases
  • /:id

Get a specific test case

Request

REQUIRED SCOPES
UNIT_TEST_INFO
URL PARAMETERS
workspace_domainrequiredstring
The human-readable ID of the workspace

Example: "my-company"

project_namerequiredstring
The human-readable ID of the project

Example: "my-project"

suite_idrequiredstring
The ID of the unit test suite

Example: "MNbyVedg"

session_idrequiredstring
The ID of the test session

Example: "r4nBYXVq"

test_group_idrequiredstring
The ID of the test group

Example: "com.example.tests.IntegrationTests"

idrequiredstring
The ID of the test case

Example: "com.example.tests.IntegrationTests.testUserLogin"

Response

RESPONSE BODY
urlread-onlystring
API endpoint to GET this object
html_urlread-onlystring
Web URL to view this object in Buddy.works
idstring
Unique identifier of the test case
namestring
Name of the test case
test_group_namestring
Name of the test group this case belongs to (typically corresponds to a test suite in JUnit XML)
test_group_idstring
ID of the test group this case belongs to
classnamestring
Fully qualified class name of the test
statusstring enum
Test execution status
Allowed enum:
PASSED,
FAILED,
SKIPPED,
ERROR
timenumber
Execution time in seconds
datastring
Original XML data from the test report

Last modified on Jan 26, 2026

Request example

CURL
curl -X GET "https://api.buddy.works/workspaces/:workspace_domain/projects/:project_name/unit-tests/suites/:suite_id/sessions/:session_id/test-groups/:test_group_id/cases/:id" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json"
EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/my-workspace/projects/my-project/unit-tests/suites/5ddb7c180fb38be67bd78a88a/sessions/5ddb7c180fb38be67bd78a88b/test-groups/com.example.tests.IntegrationTests/cases/com.example.tests.IntegrationTests.testUserLogin", "html_url": "https://app.buddy.works/my-workspace/projects/my-project/unit-tests/suites/5ddb7c180fb38be67bd78a88a/sessions/5ddb7c180fb38be67bd78a88b/test-groups/com.example.tests.IntegrationTests/cases/com.example.tests.IntegrationTests.testUserLogin", "id": "com.example.tests.IntegrationTests.testUserLogin", "name": "testUserLogin", "test_group_name": "com.example.tests.IntegrationTests", "test_group_id": "com.example.tests.IntegrationTests", "classname": "com.example.tests.IntegrationTests", "status": "PASSED", "time": 2.5, "data": "<testcase name=\"testUserLogin\" classname=\"com.example.tests.IntegrationTests\" time=\"2.5\"/>" }
STATUS
200 OK