List All Test Results for an Xcode Cloud Test Action
List all test results for a specific test action Xcode Cloud performed as part of a build.
URL
GET https://api.appstoreconnect.apple.com/v1/ciBuildActions/{id}/testResultsPath Parameters
| Name | Type | Description |
|---|---|---|
id Required | string | The opaque resource ID that uniquely identifies the Build Actions resource. |
Query Parameters
| Name | Type | Description |
|---|---|---|
fields[ciTestResults] Optional | [string] | Additional fields to include for each Test Results resource returned by the response. |
limit Optional | integer | The number of Test Results resources to return. |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | CiTestResultsResponse | The request completed successfully. |
| 400 | Bad Request Content-Type: application/json | ErrorResponse | An error occurred with your request. |
| 401 | Unauthorized Content-Type: application/json | ErrorResponse | |
| 403 | Forbidden Content-Type: application/json | ErrorResponse | Request not authorized. |
| 404 | Not Found Content-Type: application/json | ErrorResponse | Resource not found. |
| 429 | Content-Type: application/json | ErrorResponse |
Discussion
The example request below lists the test results for an Xcode Cloud build that performed a test action. Use the information provided in the response to display test results on a dashboard, create a new task for a failing test in your issue tracker, and so on.
Example Request and Response
See Also
Getting Build Actions
Read Build Action InformationList All Artifacts for a Build ActionRead the Xcode Cloud Build Information for a Build ActionList All Issues for a Build ActionGET /v1/ciBuildActions/{id}/relationships/artifactsGET /v1/ciBuildActions/{id}/relationships/buildRunGET /v1/ciBuildActions/{id}/relationships/issuesGET /v1/ciBuildActions/{id}/relationships/testResults