REST Resource: projects.histories.executions.steps.testCases

資源:測試案例

JSON 表示
{
  "testCaseId": string,
  "elapsedTime": {
    object (Duration)
  },
  "startTime": {
    object (Timestamp)
  },
  "endTime": {
    object (Timestamp)
  },
  "stackTraces": [
    {
      object (StackTrace)
    }
  ],
  "status": enum (TestStatus),
  "skippedMessage": string,
  "testCaseReference": {
    object (TestCaseReference)
  },
  "toolOutputs": [
    {
      object (ToolOutputReference)
    }
  ]
}
領域
testCaseId

string

此測試案例的步驟中的唯一識別碼。

elapsedTime

object ( Duration )

測試用例已運行的時間。

必需的。

startTime

object ( Timestamp )

測試用例的開始時間。

endTime

object ( Timestamp )

測試用例的結束時間。

stackTraces[]

object ( StackTrace )

堆疊追蹤詳細說明測試案例是否失敗或遇到錯誤。

堆疊追蹤的最大大小為 100KiB,超過該大小堆疊追蹤將被截斷。

如果測試用例通過則為零。

status

enum ( TestStatus )

測試用例的狀態。

必需的。

skippedMessage

string

為什麼測試用例被跳過。

僅適用於跳過的測試案例

testCaseReference

object ( TestCaseReference )

測試案例參考,例如名稱、類別名稱和測試套件名稱。

必需的。

toolOutputs[]

object ( ToolOutputReference )

對工具執行輸出的任何格式的不透明檔案的參考。

注意:此欄位僅在回應中使用。請求中指定的任何值都將被忽略。

測試狀態

測試用例的狀態。

列舉
passed考試通過了。
failed測試失敗。
error測試遇到錯誤
skipped測試已跳過
flaky

測試剝落。

僅適用於匯總測試案例;使用相同配置運行的步驟中的測試案例既有失敗的結果,也有成功的結果。

方法

get

取得步驟的測試案例的詳細資訊。

list

列出附加到步驟的測試案例。