Method: projects.histories.executions.steps.publishXunitXmlFiles

将 xml 文件发布到现有步骤。

可能返回以下任何规范错误代码:

  • PERMISSION_DENIED - 如果用户无权写入项目
  • INVALID_ARGUMENT - 如果请求格式错误
  • FAILED_PRECONDITION - 如果请求的状态转换非法,例如尝试上传重复的 xml 文件或太大的文件。
  • NOT_FOUND - 如果包含的执行不存在

HTTP请求

POST https://toolresults.googleapis.com/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles

URL 使用gRPC 转码语法。

路径参数

参数
projectId

string

项目 ID。

必需的。

historyId

string

历史记录 ID。

必需的。

executionId

string

执行 ID。

必需的。

stepId

string

步骤 ID。注意:此步骤必须包含 TestExecutionStep。

必需的。

请求正文

请求正文包含具有以下结构的数据:

JSON 表示
{
  "xunitXmlFiles": [
    {
      object (FileReference)
    }
  ]
}
领域
xunitXmlFiles[]

object ( FileReference )

要发布的 Xunit XML 文件的 URI。

此引用指向的文件的最大大小为 50MB。

必需的。

响应体

如果成功,响应正文将包含Step的实例。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

有关详细信息,请参阅身份验证概述