It's easy to launch your automated Selenium and Appium tests on Sauce Labs as part of your Bitbucket Pipelines build process.
What You'll Need
- The SAUCE_USERNAME and SAUCE_ACCESS_KEY specific to your Sauce Labs account.
- Sauce Labs account
- Bitbucket account
- Bitbucket Pipelines installed on your Bitbucket account
- Configure your
bitbucket-pipelines.ymlfile to run your tests using your test runner of choice.
For more information on this, please see the Atlassian Bitbucket documentation.
- In Bitbucket, click Settings in the left hand nav bar.
- Under Pipelines, click Environment Variables.
SAUCE_ACCESS_KEYas environment variables. Now, when you kick off a build with Bitbucket Pipelines, your tests should run on Sauce Labs.