# Defect synchronization

> Defect synchronization between Test Manager and external ALM tools for sharing execution results and defect data after test runs.

You can synchronize execution results with external tools, as part of the [Application Lifecycle Management tool integration](https://docs.uipath.com/test-manager/automation-suite/2.2610/user-guide/about-alm-tool-connectors). Information that is gathered during execution, such as results, logs, timestamps, and other details is synchronized with the tool that you have integrated with Test Manager.

## Context

Only one connection can be enabled for defect synchronization per project.

## Prerequisites

* You have configured a connector in Test Manager. See the available connections in [Test Manager](https://docs.uipath.com/test-manager/automation-suite/2.2610/user-guide/about-alm-tool-connectors).
* You have [executed a test set first](https://docs.uipath.com/test-manager/automation-suite/2.2610/user-guide/executing-tests).
* Your user role is any role aside from Read-only. For more information, see [Tenant roles and Project roles](https://docs.uipath.com/test-manager/automation-suite/2.2610/user-guide/tenant-roles-and-project-roles).

## Creating a defect

You can create defects when you access test case logs in the **Execution** page.

### Steps

1. Navigate to **Execution**.
2. Open a test result and then select the test case key to open the logs.
3. Select **Tasks** and select **Create Defect**.

   Figure 1. The **Tasks** dropdown list displaying the **Create Defect** action

   ![The Tasks dropdown list displaying the Create Defect action](https://dev-assets.cms.uipath.com/assets/images/test-manager/test-manager-the-tasks-dropdown-list-displaying-the-create-defect-action-463503-9dbf72e6-0962f968.webp)

### Result

The defect is created in the integrated external tool (for example, Atlassian Jira) and linked to the test execution result. You can open the defect directly in the external tool by navigating to the test execution result.

## Unlinking a defect

When you unlink defects from an external tool, the entry created in the tool remains unchanged. In Test Manager, the test execution result is not linked with an external tool.

### Steps

1. Navigate to **Execution**.
2. Open a test result and then select **Tasks**.
3. Select **Unlink Defect**.

### Result

The test execution result is no longer linked to the defect in the external tool.
