getTestCases

@GET(value = "api/tests/cases")
abstract suspend fun getTestCases(@Query(value = "container") container: String, @Query(value = "testOutcomes") testOutcomes: List<TestOutcome>, @Query(value = "limit") limit: Int? = 100, @Query(value = "query") query: String, @Query(value = "include") include: List<TestIncludeFields>? = null): TestsResponse

Get a list of test cases. Retrieves the list of test cases of a single container. Responses:

  • 200: A list of test cases.

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

  • 500: The server encountered an unexpected error.

Return

TestsResponse

Parameters

container

Must be the fully qualified name of the test container to query. May not contain any wildcards.

testOutcomes

Allows restricting the search to tests that had at least one instance of the given outcome.

limit

The maximum number of test outcomes to query. (optional, default to 100)

query

A query for filtering tests, written in the Develocity advanced search query language See: https://gradle.com/help/enterprise-advanced-search

include

Controls which optional fields are included in the response. (optional)