Get AI Root Cause Analysis for Test Executions
tm.get_testExecutionRCARetrieves AI-generated root cause analysis for failed test executions using test IDs, job IDs, task IDs, or stage IDs. Accepts multiple IDs for batch fetching, with optional pagination.
Instructions
Retrieves LambdaTest's AI-generated root cause analysis (RCA) for one or more automation/KaneAI test executions. Accepts any combination of test_ids (the same ID shown as 'Automation Test ID'/test_id by tm.get_testCaseInstancesByTestRunId, tm.get_testExecutionHistoryByTestCaseId, and tm.get_hyperExecuteJobSessions), job_ids (returns RCA for EVERY test execution in that HyperExecute job), task_ids (every execution on that Task), or stage_ids - at least one of the four is required, each as an array (multiple values batch-fetch in a single call). Optional page/limit for pagination over large result sets.
Each record includes the RCA itself (category, severity-equivalent root cause/parent failure category, natural-language summary and analysis, a step-by-step error timeline with source logs and stack traces where available, and suggested steps to fix) AND that execution's own job_id/task_id/stage_id/build_id - useful even without needing tm.get_hyperExecuteTestDetails separately.
IMPORTANT: RCA only exists for an execution that BOTH actually ran AND failed - a passed execution, an instance that never executed at all, and a wholly invalid ID of any type all return an empty result (not an error), so an empty result here does not necessarily mean an ID was wrong. Only query for executions already known to have failed (e.g. status FAILED on a test case instance that also has a non-empty Automation Test ID / Test URL, confirming it actually reached a session). Read-only; does not modify anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| limit | No | ||
| job_ids | No | ||
| task_ids | No | ||
| test_ids | No | ||
| stage_ids | No |