> For the complete documentation index, see [llms.txt](https://docs.walnutai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.walnutai.ai/test-and-quality-management/test-management/defects/report-defects-from-execution-reports.md).

# Report Defects from Execution Reports

When a test step fails during execution, you can log a defect directly from the execution report without manually entering all the required information. WalnutAI automatically captures the execution context and generates a comprehensive defect, reducing the time spent on defect reporting while improving the consistency and quality of defect documentation.

<figure><img src="/files/FBLdNL6904SXwwEpZMnW" alt=""><figcaption></figcaption></figure>

The generated defect includes:

* **Defect Summary** – A meaningful summary generated from the failed test step.
* **Defect Type** – Identifies whether the defect was discovered during a Manual or Automated test execution.
* **Root Cause** – Captures the reason for the failure based on the execution results.
* **Failed Step Details** – Identifies the exact step where the test failed, along with the expected outcome and the actual result observed during execution.
* **Steps to Reproduce** – Automatically generates reproducible steps based on the executed test flow, making it easier for developers to recreate the issue.
* **Suggested Fix** – AI provides an initial recommendation that can help developers understand and resolve the problem faster.
* **Automatic Test Case Association** – The defect is automatically linked to the test case from which it was created, ensuring complete traceability without any additional effort.

By automatically capturing the execution details and contextual information, WalnutAI enables developers to begin investigating issues immediately without requiring QA engineers to manually document every aspect of the failure.
