Skip to main content

Returns

Returns a list of TestCase objects for the given test.

Example

test_cases = galtea.test_cases.list(test_id=test_id, limit=20)

Parameters

test_id
string | list[string]
required
The ID or IDs of the test you want to get the test cases from.
language
list[string]
Language for the test case. Follow this list to know the supported ones:
variants
list[string]
The list of variants to filter by.
strategies
list[string]
The list of strategies to filter by.
expected_tools
list[string]
The list of expected tools to filter by. It will retrieve test cases that contain exactly the same specified tools or more.
reviewed
bool
Filter by reviewed status.
user_score
int
Filter by user score (0 for unreviewed, 1 for good quality, -1 for bad quality).
sort_by_created_at
string
Sort test cases by creation date. Valid values are “asc” and “desc”.
offset
int
default:"0"
Number of test cases to skip before starting to collect results. Use for pagination.Default: 0 (start from the beginning)
limit
int
default:"1000"
Maximum number of test cases to return in a single request.Default: 1000