get_testcase_details
Retrieve detailed test case information including error messages, code snippets, test steps, console logs, and artifacts to debug test failures effectively.
Instructions
Get detailed information about a specific test case. You can identify the test case in two ways: 1) By testcase_id (can be used alone), or 2) By testcase_name combined with testrun_id (required because test cases can have the same name across different test runs). Returns error message, code snippet, file location, test steps per attempt, console logs, and artifacts (screenshots, videos, traces). Use steps_filter='failed_only' to return only steps that errored, stripping passing setup/hook steps. Use this to debug why a test failed or understand how it executed. Example: 'Get test case details for "Verify user can logout and login" in testrun #43'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by_title | No | (deprecated — use testcase_name) Test case title (partial match, case-insensitive). Retained for backward compatibility. | |
| projectId | Yes | Project ID (Required). The TestDino project identifier. | |
| testcaseid | No | (deprecated — use testcase_id) Test case ID. Retained for backward compatibility. | |
| testrun_id | No | Single test run ID to filter results. Example: 'test_run_6901b2abc6b187e63f536a6b'. | |
| testcase_id | No | Test case ID. Can be used alone to get test case details. Example: 'test_case_123'. | |
| by_fulltitle | No | Full test case title including suite path (partial match, case-insensitive). Example: 'auth.spec.js > Login > Verify user can logout and login'. | |
| steps_filter | No | Filter steps in each attempt. Use 'failed_only' to return only steps with errors, stripping passing setup and hook steps. | |
| by_testrun_id | No | (deprecated — use testrun_id) Single test run ID to filter results. Retained for backward compatibility. | |
| history_limit | No | Max number of history entries to return (max: 100, default: 10). | |
| testcase_name | No | Test case title (partial match, case-insensitive). Must be combined with testrun_id when used alone. Example: 'Verify user can logout and login'. | |
| by_testrun_ids | No | Multiple test run IDs (comma-separated, max 20). Example: 'test_run_abc,test_run_def'. | |
| include_history | No | Include historical executions of the same test case when searching by name. Default: false. |