Skip to main content

Returns

Returns a list of TestCase objects for the given test.

Example

# List all test cases for a test
test_cases = galtea.test_cases.list(test_id="YOUR_TEST_ID")

# List with pagination
paginated_test_cases = galtea.test_cases.list(test_id="YOUR_TEST_ID", offset=10, limit=5)

Parameters

test_id
string | list[string]
required
The ID or IDs of the test you want to get the test cases from.
language
string | list[string]
Language for the test case. Follow this list to know the supported ones:
variants
string | list[string]
The list of variants to filter by.
strategies
string | list[string]
The list of strategies to filter by.
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
The number of test cases to skip before starting to collect the result set.
limit
int
The maximum number of test cases to return.
I