May return any of the following canonical error codes:
PERMISSION_DENIED - if the user is not authorized to write project
INVALID_ARGUMENT - if the request is malformed
FAILED_PRECONDITION - if the requested state transition is illegal, e.g. try to upload a duplicate xml file or a file too large.
NOT_FOUND - if the containing Execution does not exist
HTTP request
POST https://toolresults.googleapis.com/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-24 UTC."],[],[],null,["# Method: projects.histories.executions.steps.publishXunitXmlFiles\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nPublish xml files to an existing Step.\n\nMay return any of the following canonical error codes:\n\n- PERMISSION_DENIED - if the user is not authorized to write project\n- INVALID_ARGUMENT - if the request is malformed\n- FAILED_PRECONDITION - if the requested state transition is illegal, e.g. try to upload a duplicate xml file or a file too large.\n- NOT_FOUND - if the containing Execution does not exist\n\n### HTTP request\n\n`POST https://toolresults.googleapis.com/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------|---------------------------------------------------------------------------------|\n| `projectId` | `string` A Project id. Required. |\n| `historyId` | `string` A History id. Required. |\n| `executionId` | `string` A Execution id. Required. |\n| `stepId` | `string` A Step id. Note: This step must include a TestExecutionStep. Required. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------|\n| ``` { \"xunitXmlFiles\": [ { object (/docs/test-lab/reference/toolresults/rest/v1beta3/FileReference) } ] } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `xunitXmlFiles[]` | `object (`[FileReference](/docs/test-lab/reference/toolresults/rest/v1beta3/FileReference)`)` URI of the Xunit XML files to publish. The maximum size of the file this reference is pointing to is 50MB. Required. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Step](/docs/test-lab/reference/toolresults/rest/v1beta3/projects.histories.executions.steps#Step).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]