# Creating New Defects From Failed Test Cases

<details>

<summary>Step 1: Change Test Case status</summary>

Inside a Test Run, adjust the Test Case status to "Failed"

</details>

<figure><img src="/files/72ILPE1lzXfqCv0piIOw" alt=""><figcaption><p>Adjust the status of the test case to failed from the colum dop down menu.</p></figcaption></figure>

<details>

<summary>Step 2: Confirm creation of a new Defect</summary>

A notification will appear asking if you would like to confirm the creation of a new Defect.\
\
Click "Create new defect" to continue or "Skip" to set the failed status to the Test Case without adding a new Defect.

</details>

<figure><img src="/files/GafbdKMTfrWHrqgWP15j" alt=""><figcaption><p>A notification will appear asking if you want to create a new Defect.</p></figcaption></figure>

<details>

<summary>Step 3: Fill in information for the new Defect</summary>

A sidebar will appear on the right with fields to include defect information:

* Integration: Add integration info. Ex: Github, Jira
* Name: Name of the defect
* Link to an existing case: Place a work link in the field to link this Defect to an existing one.

</details>

<figure><img src="/files/E4wezIL08RRt2z4i8bNn" alt=""><figcaption><p>Fill in the Defect information and click create a new Defect at the bottom.</p></figcaption></figure>

When you create a new Defect, you can add an Integration into it to make finding and addressing it easier. Click "Next" to see how.


---

# 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.testfiesta.com/projects-tab/test-runs-tab/creating-new-defects-from-failed-test-cases.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.
