# Linking a Test Case to Defect

Effectively manage your defect resolution process by directly associating test cases with specific defects within our test case management tool.&#x20;

This powerful feature streamlines your testing efforts, enhances defect tracking, and improves overall test efficiency, helping you,

* **Accelerated Defect Verification:** Quickly create test cases specifically designed to verify defect fixes by selecting the relevant defect from a dropdown list during test case creation.
* **Enhance traceability:** Easily track which test cases validate associates more defects, which in turn help you analyse the vulnerability of a user story implementation.
* **Enhanced Reporting:** Generate comprehensive reports that correlate test cases with defects, aiding in root cause analysis and quality improvement initiatives.

### Steps to Link a Test Case to Defect in SimplifyQA

1. Navigate to the test case module and open the test case you want to link to a defect.

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

2. Click on the "**Defects**" Option.

<figure><img src="/files/6sJ94h4xaGzPqsJS01jK" alt=""><figcaption></figcaption></figure>

3. Select the Defect from the list of available defects.

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

4. Once selected, click Save to establish the link.
5. The test case will now be associated with the defect, ensuring traceability.

By linking test cases to defects, you gain better visibility into your testing process, improve defect management, and ensure that software quality is consistently maintained.

### Frequently Asked Questions (FAQs)

<details>

<summary>Why should I link a test case to a defect?</summary>

Test cases are created to verify defect fixes, ensuring that the issue has been resolved and does not reoccur. So linking the defects, help track the test execution specific to that defect fix.

</details>

<details>

<summary>Can I unlink a defect from a test case?</summary>

Yes, if a defect is incorrectly linked, you can unlink it from the test case.

</details>

<details>

<summary>Can I link a defect after test execution?</summary>

Yes, if a defect is identified later and there is a test case already created which covers the scenario, you can manually link it to the test case after execution.

</details>


---

# 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/introduction-to-test-management-in-simplifyqa/linking-a-test-case-to-defect.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.
