test_cases
Creates, updates, deletes, gets or lists a test_cases
resource.
Overview
Name | test_cases |
Type | Resource |
Id | firebase.toolresults.test_cases |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
elapsedTime | object | The elapsed run time of the test case. Required. (id: Duration) |
endTime | object | The end time of the test case. (id: Timestamp) |
skippedMessage | string | Why the test case was skipped. Present only for skipped test case |
stackTraces | array | 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. |
startTime | object | The start time of the test case. (id: Timestamp) |
status | string | The status of the test case. Required. |
testCaseId | string | A unique identifier within a Step for this Test Case. |
testCaseReference | object | Test case reference, e.g. name, class name and test suite name. Required. (id: TestCaseReference) |
toolOutputs | array | References to opaque files of any format output by the tool execution. @OutputOnly |
Successful response
Name | Datatype | Description |
---|---|---|
elapsedTime | object | The elapsed run time of the test case. Required. (id: Duration) |
endTime | object | The end time of the test case. (id: Timestamp) |
skippedMessage | string | Why the test case was skipped. Present only for skipped test case |
stackTraces | array | 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. |
startTime | object | The start time of the test case. (id: Timestamp) |
status | string | The status of the test case. Required. |
testCaseId | string | A unique identifier within a Step for this Test Case. |
testCaseReference | object | Test case reference, e.g. name, class name and test suite name. Required. (id: TestCaseReference) |
toolOutputs | array | References to opaque files of any format output by the tool execution. @OutputOnly |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectId , historyId , executionId , stepId , testCaseId | Gets details of a Test Case for a Step. Experimental test cases API. Still in active development. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing Test Case does not exist | |
list | select | projectId , historyId , executionId , stepId | pageToken , pageSize | Lists Test Cases attached to a Step. Experimental test cases API. Still in active development. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing Step does not exist |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
executionId | string | |
historyId | string | |
projectId | string | |
stepId | string | |
testCaseId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
Gets details of a Test Case for a Step. Experimental test cases API. Still in active development. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing Test Case does not exist
SELECT
elapsedTime,
endTime,
skippedMessage,
stackTraces,
startTime,
status,
testCaseId,
testCaseReference,
toolOutputs
FROM firebase.toolresults.test_cases
WHERE projectId = '{{ projectId }}' -- required
AND historyId = '{{ historyId }}' -- required
AND executionId = '{{ executionId }}' -- required
AND stepId = '{{ stepId }}' -- required
AND testCaseId = '{{ testCaseId }}' -- required;
Lists Test Cases attached to a Step. Experimental test cases API. Still in active development. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing Step does not exist
SELECT
elapsedTime,
endTime,
skippedMessage,
stackTraces,
startTime,
status,
testCaseId,
testCaseReference,
toolOutputs
FROM firebase.toolresults.test_cases
WHERE projectId = '{{ projectId }}' -- required
AND historyId = '{{ historyId }}' -- required
AND executionId = '{{ executionId }}' -- required
AND stepId = '{{ stepId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}';