Method: projects.histories.executions.steps.testCases.get

获取步骤的测试用例的详细信息。实验测试用例API。仍在积极开发中。

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

  • PERMISSION_DENIED - 如果用户无权写入项目
  • INVALID_ARGUMENT - 如果请求格式错误
  • NOT_FOUND - 如果包含的测试用例不存在

HTTP请求

GET https://toolresults.googleapis.com/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases/{testCaseId}

URL 使用gRPC 转码语法。

路径参数

参数
projectId

string

项目 ID。

必需的。

historyId

string

历史记录 ID。

必需的。

executionId

string

执行 ID

必需的。

stepId

string

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

必需的。

testCaseId

string

测试用例 ID。

必需的。

请求正文

请求正文必须为空。

响应体

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

授权范围

需要以下 OAuth 范围:

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

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