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
andSAUCE_ACCESS_KEY
specific to your Sauce Labs account Find these - Bitbucket account Sign Up
- Bitbucket Pipelines installed on your Bitbucket account Create pipelines
Procedure
- Configure your
bitbucket-pipelines.yml
file to run your tests using your test runner of choice. - From your Bitbucket dashboard, choose
Settings
. - Under
Pipelines
, chooseEnvironment Variables
. - Add your
SAUCE_USERNAME
andSAUCE_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.