# Configuring and Executing Test case

Configuring and Executing Test cases in Avo Assure with Xray Integration follows a structured approach to ensure smooth execution and accurate results. As the first step, the user needs to set up the execution list with the required settings, including Test case selection, Integration options, and defect management preferences. Once the configuration is done, the user can run the Test cases, and it will generate detailed reports.

**To configure and execute Test cases, perform the following actions:**

1. Create **Execution List** in **Execution** tab.

{% hint style="info" %}
**Note:** To create execution list, refer to [Working with Execution section](/avo-assure/working-with-the-avo-assure-platform/create-and-execute-tests-with-design-studio/working-with-execution-section.md)
{% endhint %}

2. Expand **Test Management tool** option and select **Xray** as Test management tool and Xray popup window will appear.

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

3. Search and select **Xray Project** from the dropdown.
4. Select Xray **Test Plan** from the dropdown and click **Save** button.

<figure><img src="/files/5W8xBC25UYzq1BMKxiq2" alt=""><figcaption></figcaption></figure>

#### **To Create Test Plan, perform the following actions:**

This feature can be used when the required **Xray** **Test Plan** is not present in the Xray Project, then user can create new Xray Test Plan.

1. Select the **Avo Assure Project** from the dropdown and click **Create Test Plan** button, present in the **Xray** popup window.
2. Provide all required fields on the **Create TestPlan** popup window.
3. Click **Create Plan** button to create new Test Plan in Xray Project.

{% hint style="info" %}
**Note:** This **Test Plan** will be linked to Test case in Xray while execution.
{% endhint %}

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

4. Once the **Test Plan** is created, it appears in the dropdown of the **Xray** popup window, and the user can select the created Test Plan.
5. Click on **Save** button.

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

6. If needed, user can select **Jira** for bug tracking.

{% hint style="info" %}
**Note:** User can also create defect when Test Step Fail at the time of execution by enabling **Auto defect Toggle** button, refer to[ Auto Defect Creation](/avo-assure/integrations-in-avo-assure/test-management/jira-integration/auto-defect-creation.md)
{% endhint %}

&#x20;7\. Click **Save** button in the top-right pane of the **Execution** window to save the configuration.

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

8. After completing the configuration, select the **parent folder** and then click the **Execute button**. The **Execute Now** pop-up window will appear.

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

9. After verifying the details, select Execute button to execute the test case.

{% hint style="info" %}
**Note:** If user have already selected **Test Management Tool** while configuring the execution list then it will auto populated in **Execute Now** popup window.
{% endhint %}

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

10. After execution, the **Avo Assure Client** displays the message as **Updated Xray Details,** indicating that the execution details are successfully updated in Zephyr Scale.

<figure><img src="/files/SF5J1ZGS9sVH9mY8Jl2z" alt=""><figcaption></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.avoautomation.com/avo-assure/integrations-in-avo-assure/test-management/xray/configuring-and-executing-test-case.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.
