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

Resource: TestCase

JSON representation
{
  "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)
    }
  ]
}
Fields
testCaseId

string

A unique identifier within a Step for this Test Case.

elapsedTime

object (Duration)

The elapsed run time of the test case.

Required.

startTime

object (Timestamp)

The start time of the test case.

endTime

object (Timestamp)

The end time of the test case.

stackTraces[]

object (StackTrace)

The stack trace details if the test case failed or encountered an error.

The maximum size of the stack traces is 100KiB, beyond which the stack track will be truncated.

Zero if the test case passed.

status

enum (TestStatus)

The status of the test case.

Required.

skippedMessage

string

Why the test case was skipped.

Present only for skipped test case

testCaseReference

object (TestCaseReference)

Test case reference, e.g. name, class name and test suite name.

Required.

toolOutputs[]

object (ToolOutputReference)

References to opaque files of any format output by the tool execution.

Note: This field is used in responses only. Any value specified here in a request is ignored.

TestStatus

The status of a test case.

Enums
passed Test passed.
failed Test failed.
error Test encountered an error
skipped Test skipped
flaky

Test flaked.

Present only for rollup test cases; test cases from steps that were run with the same configuration had both failure and success outcomes.

Methods

get

Gets details of a Test Case for a Step.

list

Lists Test Cases attached to a Step.