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

列出附加到步驟的測試案例。實驗測試案例API。仍在積極開發中。

可能傳回以下任何規範錯誤代碼:

  • PERMISSION_DENIED - 如果使用者無權寫入項目
  • INVALID_ARGUMENT - 如果請求格式錯誤
  • NOT_FOUND - 如果包含的步驟不存在

HTTP請求

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

URL 使用gRPC 轉碼語法。

路徑參數

參數
projectId

string

項目 ID。

必需的。

historyId

string

歷史記錄 ID。

必需的。

executionId

string

執行 ID

必需的。

stepId

string

步驟 ID。注意:此步驟必須包含 TestExecutionStep。

必需的。

查詢參數

參數
pageToken

string

用於在下一項處恢復查詢的繼續標記。

選修的。

pageSize

integer

要取得的最大測試案例數。

預設值:100。如果該欄位未設定或值為 0,伺服器將使用此預設值。

選修的。

請求正文

請求內文必須為空。

響應體

StepService.ListTestCases 的回應訊息。

如果成功,回應正文包含具有以下結構的資料:

JSON 表示
{
  "testCases": [
    {
      object (TestCase)
    }
  ],
  "nextPageToken": string
}
領域
testCases[]

object ( TestCase )

測試用例列表。

nextPageToken

string

授權範圍

需要以下 OAuth 範圍:

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

有關詳細信息,請參閱身份驗證概述