# Pushing Data to Bitbucket Repository

## Push Method in Avo Assure

The Push method in Avo Assure sends the latest test artifacts to the Bitbucket repository. It is used in the following scenarios:

* Creating new test artifacts, such as Element Repository, Test Cases, Data Tables, or Execution Lists.
* Updating or modify existing test artifacts to save the latest version in Bitbucket.
* Sharing updated test artifacts with the team through Bitbucket.
* Maintaining version history of automation assets for safety and traceability.

### Pushing Test cases to Bitbucket Repository

From Avo Assure, the following test artifact data can be pushed to Bitbucket for version control:

* 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 push Test cases to Bitbucket Repository, perform the following actions:

1. On the **Home** page, under **Projects**, select the required **Project**.&#x20;
2. Select **Design** Studio.
3. Select the **Test Case** tab and locate the **Bitbucket** icon.
4. Select the **Bitbucket** icon and then select **Push**. The **Commit Test Cases** dialog opens.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FeteQ3StDijn8RkUjlodm%2Fimage.png?alt=media&#x26;token=f21bf933-4a96-4618-803c-9f7f4b5e35ab" alt=""><figcaption></figcaption></figure>

5. Search and select **Test Case** or **Test Case Folder**.

{% hint style="info" %}
**Note**:

* The following information applies only to the **Test Case** page.
  * If a Test case contains associated Test Data and you want to push both to the Bitbucket repository, select the corresponding Test cases.
* The following information applies to all artifacts.
  * When the **Show only modified Test Cases** toggle is enabled, only untracked or modified Test Case artifacts are displayed.
  * If you want to push all artifact data to the Bitbucket repository, use the **Select All** check box available on the left-down of the **Push Test Cases** dialog.
    {% endhint %}

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FpRbuvXLy0cXgkX82kxkr%2Fimage.png?alt=media&#x26;token=9fd96737-a632-4a9a-a973-9efec968b4f3" alt=""><figcaption></figcaption></figure>

6. Select the Bitbucket **Branch** and in the **Push message** text box, enter push related message.
7. Select **Push** to send the Avo Assure Test Case or Test Case Folder to the Bitbucket repository.

{% hint style="info" %}
**Note**:

* During the process of pushing test artifacts to Bitbucket, the Avo Assure Client Console provides real-time updates throughout the commit phase, showing the ongoing progress. Once the commit is completed successfully, a single push is triggered automatically to Bitbucket.
* The following notes apply only to the **Test Case** tab:
  * If a Test Case includes elements from the **Element Repository** and you want to push those elements to the Bitbucket repository as well, enable the **Push associated Element Repository** option.
  * If a Test Case includes Data Table content used for data parameterization and you want to push that data to the Bitbucket repository as well, enable the **Push associated Data Table** option.
  * You can now view the total number of Test cases selected before pushing them to Bitbucket.
    {% endhint %}

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F9WX2kbxBQ9UWGBJNPswg%2Fimage.png?alt=media&#x26;token=2462ec0d-4da0-45c3-9d7e-32337256eda8" alt=""><figcaption></figcaption></figure>

8. After selecting **Push**, a toast message appears on the screen: **Successfully pushed**. The Client console also provides a confirmation message indicating whether all test artifacts were successfully pushed to Bitbucket.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FJouBtK1ZfRvsh9o6CcOk%2Fimage%20(39).png?alt=media&#x26;token=818c6bd8-9800-42e8-957c-d1bdf040b3ed" alt=""><figcaption></figcaption></figure>

### Pushing Data Table to Bitbucket Repository&#x20;

To push Data Table to 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%2FQXWDGBnckIspDF4wNNh5%2Fimage.png?alt=media&#x26;token=9a602a4d-92e2-469b-88f7-956835e151b6" alt=""><figcaption></figcaption></figure>

5. Search and select **Data Table** or **Data Table folder**.

{% hint style="info" %}
**Note**:

* When the **Show only modified Utility Datatable** toggle is enabled, only untracked Data Table artifacts are displayed.
* To push the entire Data Table to the Bitbucket repository, use the **Select All** check box option available on the left-side of the **Push Data Tables** dialog.
  {% endhint %}

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FtwWLtyJSYOQ7f1do2oMN%2Fimage.png?alt=media&#x26;token=d8d15f78-cafc-4932-a412-e34efd7d28dd" alt=""><figcaption></figcaption></figure>

6. Select **Bitbucket Branch.**
7. In the **Push message** text box, enter push related message.
8. Select **Push** to send the Avo Assure Data Table or Data Table Folder to the Bitbucket repository.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FqSRpKajCecVmnlyX4ND4%2Fimage.png?alt=media&#x26;token=65d2e7d4-6d8b-4ce6-b804-b15c66ae907e" alt=""><figcaption></figcaption></figure>

9. After selecting **Push**, a toast message appears on the screen: **Successfully pushed**.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FDMB1pUO4afbiQ1hzAmq0%2Fimage.png?alt=media&#x26;token=c94eea73-7beb-447d-94f8-cff3d3a9410a" alt=""><figcaption></figcaption></figure>
