Links

Bitbucket

Bitbucket integration is a great way to speed up your development process. By integrating Bitbucket with Loadmill, you can automatically test your code as you make changes. This makes it easy to find and fix bugs quickly and ensures that your code is always up to date.
Make sure to have an Atlassian account to connect to Bitbucket.

Bitbucket Integration Setup

  1. 1.
    Go to Settings > Integrations.
  2. 2.
    Click on the
    button.
  3. 3.
    Grant Loadmill access to your Bitbucket account.
  4. 4.
    Select your repository.
You might be redirected to the Atlassian login page when connecting Loadmill to Bitbucket. Login using your Atlassian credentials and set up a Bitbucket username to complete the registration.

Syncing your Test Suite

Now that your Bitbucket integration is all set up head over and sync your Test Suite to your repository.

To sync your Test Suite to your Bitbucket repository:

  1. 1.
    Select the Test Suite you wish to connect your repository to.
  2. 2.
    Select the "Bitbucket Sync" tab.
  3. 3.
    Select or create a new branch from the Sync Actions section.
  4. 4.
    Enter a commit message (example: my first commit).
  5. 5.
    Click on
    .

Running Test Plans with Bitbucket

You can configure your Test Plan to run with the latest syncs of your test suites repositories. That means your Test Plan will run with the latest Test Suite synced commits.
To configure this option:
  1. 1.
    Head over to any Test Plan you wish to connect your repository to.
  2. 2.
    Select the "Run Settings" tab of the Test Plan.
  3. 3.
    Select the branch containing the synced Test Suite.
Your Test Plan will now run on the latest committed version of the Test Suites.
Changing your Test Suites locally will not affect the Test Plan run until you commit your changes to Bitbucket.

Syncing from your Bitbucket Repository

Loadmill can similarly track syncs made directly through Bitbucket. Simply commit a new change from your repository and you'll be able to see the commit change under the Bitbucket Sync tab of your Test Suite.
To do that:
  1. 1.
    Edit your Test Suite file from your Bitbucket repository.
  2. 2.
    Commit the changes made.
  3. 3.
    Enter your commit message and create a pull request from this change.
  4. 4.
    Click on "Merge" from your pull request.
  5. 5.
    Go back to your Test Suite > Bitbucket Sync on the Loadmill app.
  6. 6.
    Notice the latest commit under the "Branch History" section.
  7. 7.
    Click on "Checkout".
  8. 8.
    See the changes on your Test Suite.

Creating/Updating Branch

To create a new branch (or update an existing one) from the Loadmill app:
  1. 1.
    Head over to your Test Suite.
  2. 2.
    Select the "Bitbucket Sync" Tab.
  3. 3.
    Under Sync Actions > Commits.
  4. 4.
    Type in the new branch name (or select an existing one).
  5. 5.
    Commit the changes done on your test suite.
  6. 6.
    Click on "Create Pull Request"
Clicking "Create Pull Request" enables you to view the changes in the Test Suite and create a pull request for your synced Bitbucket branch. There, you'll be able to manage and merge when ready.