report_case_result
Record manual test case outcomes: set per-step pass/fail and the case status, or auto-derive it from steps, while the source group's progress updates automatically.
Instructions
Record the result of running one case inside a Manual Test Execution: set per-step pass/fail and/or the case status, atomically and idempotently. Target the case by executionCaseId (from get_execution_cases) OR by executionId + caseId (numeric; if the case is in several groups, pass groupId or use executionCaseId). status: an explicit value (passed/failed/blocked/in_testing/not_executed), or "auto" to derive it from the steps (failed then blocked then in_testing then passed), or omit it to leave the case status unchanged (e.g. when only writing one step). steps[].status is one of not_executed/passed/failed/blocked/skipped; index is the 0-based position in the case steps. The containing source group's status auto-rolls from its cases' results: all not_executed -> not_started, some executed -> in_progress, all executed -> blocked if the group contains a blocked case, else completed (test_run_status has no failed; failures show via the group's counters). An explicit set_execution_source_status override lasts until the next report on that group recomputes it. Returns the case status, the group status, the steps written, and fresh execution progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional free-text notes for the case run | |
| steps | No | Per-step results to upsert. | |
| caseId | No | Alternative to executionCaseId: the numeric case id (with executionId). | |
| status | No | Case status: passed/failed/blocked/in_testing/not_executed, or "auto" to derive from steps, or omit to leave unchanged. | |
| groupId | No | Optional: disambiguate when the case is in several source groups. | |
| causedBy | No | Optional: which step or thing caused failure | |
| executionId | No | Alternative to executionCaseId: the execution UUID (with caseId). | |
| durationMinutes | No | Optional: time spent, in minutes | |
| executionCaseId | No | The case-run row UUID (from get_execution_cases). Preferred. |