# Pulling Data from Bitbucket Repository

## Pull Method in Avo Assure

The Pull method in Avo Assure is used to bring test artifacts from the Bitbucket repository back to Avo Assure. Use the Pull method in the following cases:

* To access Avo Assure test artifacts (such as Element Repository, Test Cases, Data Tables, or Execution Lists) that were already stored in Bitbucket.
* To set up Avo Assure on a new machine or environment and download existing (previously pushed) Avo Assure test artifacts in new machine from Bitbucket.

### Pulling Test cases from Bitbucket Repository

From Avo Assure, the following test artifact data can be pull from Bitbucket Repository:

* Element Repository
* Test Case
* Data Table
* Execution List

{% hint style="info" %}
**Note**: The steps remain the same for all artifacts. Navigate to the respective artifact page, select the required data or parent folder, and push it to Bitbucket.
{% endhint %}

To pull Test cases from Bitbucket Repository, perform the following actions:

1. On the **Home** page, under **Projects**, select the required **Project**.&#x20;
2. Select **Design** Studio. Select the **Test Case** tab and locate the Bitbucket icon.
3. Select the **Bitbucket** icon and select **Push** method.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F4d3xVUZ6nPUZXNddTOWr%2Fimage.png?alt=media&#x26;token=d9d611f8-c057-4006-9408-3a887926c702" alt=""><figcaption></figcaption></figure>

4. Search **Branch** and select appropriate Folder.
5. Select **Pull** button, then you can see three options:

* **Overwrite**: When the **Overwrite** option is selected, the system restores the previous version of the Test case to the current folder.
* **Create testcase**: When the **Create testcase** option is selected, the system creates new Test case inside the 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.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FzIGJCk58MlWugmZEQX6k%2Fimage.png?alt=media&#x26;token=36849a05-e03f-453f-92b4-31eafd3823e4" alt=""><figcaption></figcaption></figure>

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

<details>

<summary>Overwrite</summary>

To pull Test case by selecting **Create Folder** option, perform the following actions:

1. A dialog box appears with the message: **It may take 1–2 minutes to pull from repository.**
2. Select **OK** button to proceed.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2Fgeu45StyqNqBTX95s0Y6%2Fimage.png?alt=media&#x26;token=fd90d261-23a3-4af1-8c66-8c51f1bff652" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F8QrPXSIgniGMvnDbBUh8%2Fimage.png?alt=media&#x26;token=8ec985b4-71bc-4edb-bc2a-adefeb9582e6" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Create testcase</summary>

To pull Test case by selecting **Create testcase** option, perform the following actions:

1. A dialog box appears with the message: **It may take 1–2 minutes to pull from repository**.
2. Select **OK** button to proceed.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FXnyECUyQaUvNsNuB2nWh%2Fimage.png?alt=media&#x26;token=e3ee3461-a132-4105-b1cc-210644b2e23c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FUIgUnngtSVWLSxOsCtA8%2Fimage.png?alt=media&#x26;token=3d24e6f9-8dd3-4b2a-bced-db163646e244" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Create Folder</summary>

To pull Test case by selecting **Create Folder** option, perform the following actions:

1. A dialog box appears with the message: **It may take 1–2 minutes to pull from repository.**
2. Select **OK** button to proceed.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FXnyECUyQaUvNsNuB2nWh%2Fimage.png?alt=media&#x26;token=e3ee3461-a132-4105-b1cc-210644b2e23c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FlWyKgIwXusedCVSp2cDa%2Fimage.png?alt=media&#x26;token=c02c01b2-8121-41e1-84cf-aac2060c42e6" alt=""><figcaption></figcaption></figure>

</details>

{% hint style="info" %}
**Note**: The following information applies only to the **Test Case** page.

* This information explains how data is pulled from the Bitbucket repository.
  * When a Test case includes associated Test Data (for example, an Excel file), selecting the Test case pulls both the Test case and the data file.
  * After the pull operation, the Test case appears in the **Test Case** page, and the data file is saved in the Avo Assure Client folder. The Avo Assure Client console displays the file path.
  * To use the pulled data file, update the file path in the Test case to match the location of the pulled data file.
    {% endhint %}

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2Fs8h8a8IseAwoUBFIwqa8%2Fimage.png?alt=media&#x26;token=312683df-c9a9-4687-aee6-7e2e6fe78726" alt=""><figcaption></figcaption></figure>

## Pulling Data Table from Bitbucket Repository

To pull Data Table from the  Bitbucket Repository, perform the following actions:

1. On the **Home** page, under **Projects**, select the required **Project**.&#x20;
2. From the **Settings** card, select the **Manage Integrations**.
3. Select **Test Data Management** page.
4. Select **Bitbucket** icon and select **Pull** method.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F61Zvawyaz2dBTsUcFfkW%2Fimage.png?alt=media&#x26;token=cd0d6c3b-8426-4fbf-8ccb-4d0637854b64" alt=""><figcaption></figcaption></figure>

5. Search **Branch** and select appropriate Data Table Folder or Data Table.
6. Select **Pull** button, then you can see three options:

* **Overwrite**: When the **Overwrite** option is selected, the system restores the previous version of the Data Table folder to the current Data Table folder.
* **Create data table**: When the **Create data table** option is selected, the system creates a new Data Table inside the Data Table folder.
* **Create Folder**: When the **Create Folder** option is selected, the system creates a new folder in the Test Data Management tab and pulls all data into the newly created folder.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FR6FR9pcBEaAamHwpY9nS%2Fimage.png?alt=media&#x26;token=63332ce1-ce4d-4a36-b870-ef2eb9b03e45" alt=""><figcaption></figcaption></figure>

7. You can pull Data Table using the following options:

<details>

<summary>Overwrite</summary>

To pull Data Table by selecting **Overwrite** option, perform the following actions:

1. Select **Yes** button to restore the previous version of the Data Table Folder into the current Data Table Folder.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F3ABhriXUW7HBEHBl3yxU%2Fimage.png?alt=media&#x26;token=56c33b29-7dc4-4bc6-a52f-26c31109c463" alt=""><figcaption></figcaption></figure>

After some time, the you can see the previous version of the Data Table in the Data Table folder.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FlGwZNsaYyDaxqkVC31Zw%2Fimage.png?alt=media&#x26;token=62ebc29d-e587-481e-a93a-4262f24201ca" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Create data table</summary>

To pull Data Table by selecting **Create data table** option, perform the following actions:

1. A dialog box appears with the message: **It may take 1–2 minutes to pull**.
2. Select **OK** button to proceed.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FcdpmeZGzDk2tGXHwrv18%2Fimage.png?alt=media&#x26;token=932352e2-033e-414c-8682-25591ffaf4c0" alt=""><figcaption></figcaption></figure>

After some time, the you can see the previous version of the Data Table in the Data Table folder.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FBsvEr85Sfzlbl5i0Wxa7%2Fimage.png?alt=media&#x26;token=d627b821-24e9-40d4-a34e-9ca5f31118aa" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Create Folder</summary>

To pull Data Table by selecting **Create Folder** option, perform the following actions:

1. A dialog box appears with the message: I**t may take 1–2 minutes to pull**.
2. Select **OK** button to proceed.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FcdpmeZGzDk2tGXHwrv18%2Fimage.png?alt=media&#x26;token=932352e2-033e-414c-8682-25591ffaf4c0" alt=""><figcaption></figcaption></figure>

After some time, the you can see the newly created Data Table Folder and Data Table in the **Test Data Management** page.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FYfCZW9NvQPGXTOqATnWQ%2Fimage.png?alt=media&#x26;token=4238e815-d2c4-4728-a808-a3fd1017b0fb" alt=""><figcaption></figcaption></figure>

</details>
