# Configure Auto-logging of Defects

Auto-logging of defects is a feature in software testing tools that automatically creates defect reports when a test case fails. This process eliminates the manual effort required by testers to document and report defects, streamlining the entire testing process.

When a test case fails, the tool captures relevant information such as:

* **Test case ID and name**
* **Test steps and expected results**
* **Actual results and error messages**
* **Screenshots or logs**

This information is then used to automatically create a defect, which can be managed in defect management.

This document provides step-by-step instructions on how to configure the auto-logging of defects when a test case or test suite fails

### Steps to Configure Auto-Logging:

1. **Enable Auto-Logging**

* **Navigate to Project Settings:** Go to **Admin** > **Projects** > **\[Project Name]** > **Project Settings**.

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

* Locate the option for 'Auto-Logging of Defects'.

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

* Enable the toggle switch to activate the feature.

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

2. **Set Default Fields:**

* **Assignee:** Specify the default assignee for auto-logged defects.
* **Status:** Set the default status for newly created defects (e.g., "Open," "New").
* **Priority:** Define the default priority for auto-logged defects (e.g., "High," "Medium," "Low").
* **Labels:** Assign default labels to help categorise and filter defects (e.g., "Functional," "Performance", "Production").

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

3. **Test the Configuration:**

* Execute a test case or test suite.
* When a test case or test suite fails verify that a new defect is automatically created in failed report and defect management with the correct information.
* Auto-logged defect would be tagged in the failed step of the respective execution report or can be accessed in defect management as well.

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

* Check the default values for assignee, status, priority, and labels.
* Ensure that the mapping between test case and defect fields is accurate.

{% hint style="info" %}
**Additional Tips:**

* **Regular Review:** Periodically review the auto-logged defects to ensure it remains accurate and up-to-date.
* Auto-logging can create duplicate defects if multiple test cases fail for the same reason. Use this feature judiciously to prevent unnecessary clutter in your defect management.
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.simplifyqa.ai/admin-controls-and-configurations/manage-projects-and-users/project-settings/configure-auto-logging-of-defects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
