Record test results
stride.record_test_resultsRecord up to 200 test results against a single run in one call. Each result is { testCaseId, status (PASSED|FAILED|BLOCKED|SKIPPED), duration?, notes?, defectId? }. UPSERTs on (run, case) so re-marking a case is idempotent; updates each case's last-result status. defectId is persisted on the result row — read it back with stride.list_test_results (per row) or stride.get_test_run (linkedDefects). Cases outside the run's project land in notFound; a defect outside the run's project rejects the whole batch. Set completeRun=true only on the final batch to atomically mark the run COMPLETED, timestamp it, and make it eligible for quality gates; the default false keeps partial batches open. Returns applied / notFound arrays + per-status counts. Optional environment + pairKey stamp the run in the same call (Modernize behavioural parity).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairKey | No | Optionally stamp the run pairKey while recording — the shared key linking a baseline run to its target run. | |
| results | Yes | ||
| testRunId | Yes | UUID of the test run. | |
| completeRun | No | Finalize the run atomically with this batch. Leave false for partial batches. | |
| environment | No | Optionally stamp the run environment while recording — "legacy-baseline" or "target" for Modernize parity. |