Outcome

解釋結果,以便人類和機器可以據此採取行動。

JSON 表示
{
  "summary": enum (OutcomeSummary),

  // Union field detail can be only one of the following:
  "successDetail": {
    object (SuccessDetail)
  },
  "failureDetail": {
    object (FailureDetail)
  },
  "inconclusiveDetail": {
    object (InconclusiveDetail)
  },
  "skippedDetail": {
    object (SkippedDetail)
  }
  // End of list of possible types for union field detail.
}
領域
summary

enum ( OutcomeSummary )

解釋結果最簡單的方法。

必需的

聯盟欄位detail 。個人結果的詳細資訊。 LINT.IfChange detail只能是以下其中之一:
successDetail

object ( SuccessDetail )

有關成功結果的更多資訊。

如果設定了此欄位但摘要未成功,則傳回 INVALID_ARGUMENT。

選修的

failureDetail

object ( FailureDetail )

有關“失敗”結果的詳細資訊。

如果設定了此欄位但摘要未失敗,則傳回 INVALID_ARGUMENT。

選修的

inconclusiveDetail

object ( InconclusiveDetail )

有關不確定結果的更多資訊。

如果設定了此欄位但摘要不是 INCONCLUSIVE,則傳回 INVALID_ARGUMENT。

選修的

skippedDetail

object ( SkippedDetail )

有關「跳過」結果的詳細資訊。

如果設定了此欄位但未跳過摘要,則傳回 INVALID_ARGUMENT。

選修的

成功詳情

帶有成功結果摘要的結果詳細資訊。 LINT.IfChange

JSON 表示
{
  "otherNativeCrash": boolean
}
領域
otherNativeCrash

boolean

如果應用程式以外的本機進程崩潰。

失敗詳情

帶有“失敗”結果摘要的結果詳細資訊。

JSON 表示
{
  "crashed": boolean,
  "timedOut": boolean,
  "notInstalled": boolean,
  "otherNativeCrash": boolean,
  "unableToCrawl": boolean,
  "failedRoboscript": boolean,
  "deviceOutOfMemory": boolean
}
領域
crashed

boolean

如果由於被測系統(應用程式)崩潰而導致故障嚴重。

timedOut

boolean

如果測試超出了某個時間限制,那就是失敗的原因。

notInstalled

boolean

如果未安裝應用程序,則無法使用該應用程式執行測試。這可能是由於嘗試在不受支援的平台上執行測試造成的。

otherNativeCrash

boolean

如果本機進程(包括應用程式以外的任何進程)崩潰。

unableToCrawl

boolean

如果機器人無法抓取應用程式;也許是因為應用程式沒有啟動。

failedRoboscript

boolean

如果 Roboscript 未能成功完成,例如,因為 Roboscript 操作或斷言失敗,或者在整個爬網期間無法匹配 Roboscript 操作。

deviceOutOfMemory

boolean

如果設備在測試過程中記憶體不足,導致測試崩潰。

不確定的細節

具有不確定結果摘要的結果詳細資訊。

JSON 表示
{
  "infrastructureFailure": boolean,
  "abortedByUser": boolean,
  "hasErrorLogs": boolean
}
領域
infrastructureFailure

boolean

如果測試運行者無法確定成功或失敗,因為測試依賴失敗的被測系統以外的組件。

例如,行動測試需要配置執行測試的設備,但配置可能會失敗。

abortedByUser

boolean

如果最終使用者在確定通過或失敗之前中止測試執行。例如,使用者按下 ctrl-c,這會在測試運行時向測試運行程序發送終止訊號。

hasErrorLogs

boolean

如果在某些基礎設施故障的情況下向使用者提供結果

跳過細節

包含已跳過的結果摘要的結果的詳細資訊。

JSON 表示
{
  "incompatibleDevice": boolean,
  "incompatibleAppVersion": boolean,
  "incompatibleArchitecture": boolean
}
領域
incompatibleDevice

boolean

如果要求的作業系統版本無法在特定裝置型號上運作。

incompatibleAppVersion

boolean

如果應用程式不支援特定的API等級。

incompatibleArchitecture

boolean

如果應用程式不在特定架構上運行,例如x86。