BitBucket

What is BitBucket?

BitBucket is a Git-based source code repository hosting service owned by Atlassian. BitBucket offers both commercial plans and free accounts with an unlimited number of private repositories.

Why use BitBucket integration?

Qase integration for BitBucket allows you to start your automated runs directly from Qase, without the need to go to BitBucket to set them up separately.

How to install BitBucket?

  1. You need to install the Qase Bitbucket app from the Atlassian Marketplace.

  2. Click the “Get it now” button:

  3. Click the “Add” button:

  4. Click the “Grant Access” button.

  5. Refresh the page and click the “Manage” button.

  6. Scroll down the right panel until you see “Qase for Bitbucket”. Click the “Qase integration config…” and after that, click on the “Link with Qase” button:

  7. You will be redirected to the Qase page. Click the “Authorize” button:

  8. Finally, you will be logged in automatically (or need to log in if you have an outdated session), and that's it.

  9. Go to Apps → Continuous Integration and take a look at the BitBucket app to be sure that integration was installed successfully.

Usage

  1. Start a new automated test run:

  2. Choose a CI/CD system to use (BitBucket):

  3. Fill in all necessary fields except the “Pipeline field”:

  4. Fill in the “Pipeline” field and click the “Start a run” button.

    • Note: You must manually enter the Pipeline name from your Bitbucket. You only need to do this once. Once added, this Pipeline will appear in the drop-down list and will be remembered in Qase. You can see the names of the Pipelines in your Bitbucket (Please check the instruction below to figure out how to do it)

  5. You will be redirected to a test run you started. In the test run details section, you will see a link to the workflow run in GitHub and the current status.

  6. When the tests have been executed, the rest run will contain all the results sent by a reporter (it should be properly configured):

How to find the correct pipeline name in Bitbucket?

  1. Open your company Bitbucket.

  2. Open the repository.

  3. Click on the pipeline's section.

  4. Click on the Run pipeline button:

  5. In the modal window, choose the branch which you would like to start:

  6. Click on the select box with the name "Pipeline" and you will see a list of pipelines. So, let's assume that I would like to run the first one. In this case, the name of my pipeline is "api_tests". If I want to start the second one - the name is "default".

  7. After you figure out which pipeline name needs to be used, you need to add it in the last field on the "Create Automatic Run modal" (”Pipeline” field).

Last updated