# 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="https://1326643208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnpMhTPhBTwVaw7bZVBjY%2Fuploads%2Fgit-blob-5b1ee1d2df674c8d78182cea9c174a0ffcf09d17%2FTest%20runs%20-%20View%20test%20run.png?alt=media" 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="https://1326643208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnpMhTPhBTwVaw7bZVBjY%2Fuploads%2Fgit-blob-fd39b9ee4eac2d1c7d7c953cae530132b465d94b%2FTest%20runs%20-%20View%20test%20run-1.png?alt=media" 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="https://1326643208-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnpMhTPhBTwVaw7bZVBjY%2Fuploads%2Fgit-blob-96a5fbfc80aeb988d75fe17bf37aea28914bd213%2FTest%20runs%20-%20View%20test%20run%20-%20Link%20defect%20-%20Custom.png?alt=media" 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.
