v4

latestOpenAPI 3.0.1Apache 2.02026-07-312457525.9 MB
Unit Test API

Add or update a test case using suite token authentication

Authentication: Include the suite token in the header: Authorization: Bearer <suite_token>

put/unit-tests/sessions/{session_id}/cases

Path parameters

session_idstring required
Example:r4nBYXVq

The ID of the test session

Request body

namestring required

Name of the test case

test_group_namestring required

Name of the test group this case belongs to (typically corresponds to a test suite in JUnit XML)

classnamestring required

Fully qualified class name of the test

status'PASSED' | 'FAILED' | 'SKIPPED' | 'ERROR' required

Test execution status

timenumber double required

Execution time in seconds

datastring

Original XML data from the test report

Response

urlstring

API endpoint to GET this object

html_urlstring

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

status'PASSED' | 'FAILED' | 'SKIPPED' | 'ERROR'

Test execution status

timenumber double

Execution time in seconds

datastring

Original XML data from the test report