# 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="/files/mxVVSWOtRWCmbmZoHzsQ" 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="/files/ibGPUkeAj9SIVJ4X5O3t" 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="/files/NkNiFvOSHHzReDSHqjdS" 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="/files/bUiRfdmAnZvf3Zsl6IKi" alt=""><figcaption><p>Test case</p></figcaption></figure>


---

# 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.aqua-cloud.io/documentation/items/defects-management/creating-a-defect-from-a-test-execution.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.
