# Creating a defect from a test execution

While executing a manual test case, you can create a new defect by clicking on the 'New Defect' button from the ribbon. You can also click on the info bar, which promts you to file a defect as soon as you mark the step as blocked or failed. &#x20;

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FKyACVtKv9N2ccqjSEoxR%2Fimage.png?alt=media&#x26;token=e39cca70-4448-4f69-a8ee-1fd80ae242a3" alt=""><figcaption><p>Test execution page</p></figcaption></figure>

A new tab will open and you are able to document and save your defect. Please make sure you have pop-ups allowed. The information from the execution is automatically transferred and the test case as well as the execution are linked to the defect via a dependency.&#x20;

In addition, information from selection fields with shared value sets as well as text fields are also transferred, provided that these are named the same in the test case and defect. &#x20;

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2Fn1g4gIrtNbcI7dGaPsg0%2Fimage.png?alt=media&#x26;token=753ff179-57ca-4b08-9759-e4a62f396499" alt=""><figcaption><p>Defect created from a test execution</p></figcaption></figure>

After saving the defect, the ticket will be added as a dependency with a relation 'detected by' type and connection to the corresponding test execution where it was found.&#x20;

Later when you need to retest the defect, from the Defect tab you can select a bug ticket and select from the menu 'Find dependent' => Test cases

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2Ff41rNCXmwVjyFlWCQeCt%2Fimage.png?alt=media&#x26;token=2c63c757-9ece-4613-a603-6ccfa07e380e" alt=""><figcaption><p>Find dependent</p></figcaption></figure>

And it will show you the test case(s) that you need to re-run.

<figure><img src="https://3920520305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyZbW8vbNs5hz8x57emJJ%2Fuploads%2FIkfOlOz90IDT070zywK5%2Fimage.png?alt=media&#x26;token=057d8039-357b-470e-935d-3baaf4747474" alt=""><figcaption><p>Test case</p></figcaption></figure>
