# Viewing and Managing Version History

{% hint style="info" %}
**Note**: The following steps are the same for all artifacts. Navigate to the respective artifact page.
{% endhint %}

## To View Version History

To view **Version History** of Test case in **Test Case** page, perform the following actions:

1. On the **Home** page, under **Projects**, select the required **Project**.
2. Select **Design Studio** and select the **Test Case** page.
3. In the **Test Case** page. Select the required sub folder.
4. From the sub folder, select the **Expand** arrow icon.
5. Select the **Test case** and select the **Ellipsis** **(...)** icon.
6. Select **Version History** option.

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

{% hint style="info" %}
The following information applies when the **Version History** option is selected for a Test case:

A dialog box is displayed showing a tabular view of all previous commits made for the selected Test case.

* The version history table includes the following columns:
  * **Date & Time**: Displays the date and time when the Test case version is committed.
  * **User Name**: Indicates the person who commits the Test case.
  * **Push ID**: Displays the unique commit identifier associated with the push operation.
  * **Comment**: Shows the comment added during the commit to describe the change.
  * **Branch**: Displays the branch to which the Test case is pushed.
    {% endhint %}

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

7. Select the **Restore** icon, then you can see the following options:
   * **Overwrite**: When the **Overwrite** option is selected, the system restores the previous version of the Test case folder to the current Test case folder.
   * **Create Testcase**: When the **Create Testcase** option is selected, the system creates a new Test case inside the Test case folder.
   * **Create folder**: When the **Create folder** option is selected, the system creates a new folder in the **Test Case** page and pulls all data into the newly created folder.
   * **Compare Testcase**: When the **Compare Testcase** option is selected, the system compares previous pushed Test case with current Test case.

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

8. You can pull Test case using the following options:

<details>

<summary>Overwrite</summary>

To restore a Test case by selecting the **Overwrite** option from the **Testcase Version History** dialog, perform the following actions:

1. A dialog appears with the message: **Do you want to overwrite this Test Case?**
2. Select the **Yes** button to restore the previous version of the Test case folder to the current Test case folder.

<figure><img src="/files/3oFUAX9wfszB4HFsHtK4" alt=""><figcaption></figcaption></figure>

After some time, you can see the previous version of the Test case in **Test Case** page.

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

</details>

<details>

<summary>Create Testcase</summary>

To restore a Test case by selecting the **Create Testcase** option from the **Testcase Version History** dialog, perform the following actions:

1. A dialog appears with the message: **It may take 1–2 minutes to pull from the repository**.
2. Select the **OK** button to restore the previous version of the Test case to the current Test case folder.

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

After some time, you can see the newly created Test case in the **Test Case** page.

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

</details>

<details>

<summary>Create folder</summary>

To restore a Test case by selecting the **Create folder** option from the **Testcase Version History** dialog, perform the following actions:

1. A dialog appears with the message: **It may take 1–2 minutes to pull from the repository**.
2. Select the **OK** button to create a new folder on the **Test Case** page and pull all data into the newly created folder.

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

After some time, you can see the newly created Test case folder and Test case in the **Test Case** page.

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

</details>

<details>

<summary>Compare Testcase</summary>

To restore a Test case by selecting the **Compare Testcase** option from the **Testcase Version History** dialog, perform the following actions:

1. A dialog appears with the message: **It may take 1–2 minutes to pull from the repository**.
2. Select the **OK** button to compare the previous pushed Test case with current Test case.

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

After some time, you can see the comparison between previously pushed Test case and current Test case.

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

</details>


---

# 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/versioning/bitbucket/version-history/viewing-and-managing-version-history.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.
