getBuildTests

@GET(value = "api/tests/build/{id}")
abstract suspend fun getBuildTests(@Path(value = "id") id: String, @Query(value = "workUnit") workUnit: String? = null, @Query(value = "testName") testName: String? = null, @Query(value = "testOutcomes") testOutcomes: List<TestOutcome>? = null): BuildTestsResponse

GET api/tests/build/{id} Get tests executed in the given build. Retrieves summary of executed tests and containers, as well as the detailed information about each test execution in each invoked test work unit. Responses:

  • 200: Test executions in the given build.

  • 400: The request cannot be fulfilled due to a problem.

  • 500: The server encountered an unexpected error.

Return

BuildTestsResponse

Parameters

id

The Build Scan ID.

workUnit

The name of the test work unit to return test results for. If not specified, all work units are included. May contain wildcards: an asterisk character (\"*\") matches an arbitrary number of characters. (optional)

testName

The name of the test case or container to return test results for. If not specified, all tests and containers are included. May contain wildcards: an asterisk character (\"*\") matches an arbitrary number of characters. The first matching test and all of its children are returned regardless of whether their names match the query or not. (optional)

testOutcomes

Allows restricting the search to tests that had the given outcome. If not specified or empty, all tests and containers are included. If the field contains multiple outcome values, then tests and containers having any of the provided outcomes are returned. For test cases, the overall outcome is inspected. For test containers, their own outcome is inspected. The filter is applied to the leaves of the test hierarchy first. The deepest test or container with matching outcomes is returned together with all of its parents, regardless of whether their outcomes match the query or not. (optional)