Skip to main content

Sauce Labs with Bitbucket

Bitbucket is Atlassian's cloud service continuous integration tool. Launch your automated Selenium and Appium tests on Sauce Labs as part of your Bitbucket Pipelines build process.

What You'll Need

  • Sauce Labs account Sign Up
  • The SAUCE_USERNAME and SAUCE_ACCESS_KEY specific to your Sauce Labs account Find these
  • Bitbucket account Sign Up
  • Bitbucket Pipelines installed on your Bitbucket account Create pipelines

Procedure

  1. Configure your bitbucket-pipelines.yml file to run your tests using your test runner of choice.
  2. From your Bitbucket dashboard, choose Settings.
  3. Under Pipelines, choose Environment Variables.
  4. Add your SAUCE_USERNAME and SAUCE_ACCESS_KEY as environment variables.

Once these configurations are complete, when you kick off a build with Bitbucket Pipelines, it runs your tests on Sauce Labs.