Test Cases
These endpoints allow you to programmatically interact with your test cases. You can start by configuring managed test cases in Autoblocks
GEThttps://api.autoblocks.ai/test-suites/<testSuiteId>/test-cases
Get a list of test cases
This endpoint returns a list of all test cases related to a test suite.
The test suite ID is the identifier you use for id
when running a test suite. See Testing Quick Start.
Code samples for getting a list of test cases
GET
/test-suites/<testSuiteId>/test-casescurl 'https://api.autoblocks.ai/test-suites/my-test-suite-id/test-cases' \
--header "Authorization: Bearer $AUTOBLOCKS_API_KEY"
{
"testCases": [
{
"id": "cljzx8zhd00077w3sqredd0fz",
"body": {
"anyJsonKey": "anyJsonValue"
}
}
]
}