Skip to content

Sauce Labs is a comprehensive cloud-based testing platform designed to facilitate the automation and execution of web and mobile application tests. It supports a wide range of browsers, operating systems, and devices, ensuring thorough and efficient testing processes.

Below you can find the Aembit configuration required to work with the Sauce Labs as a Server Workload using the Sauce REST APIs.

  1. Create a new Server Workload.
  • Name - Choose a user-friendly name.
  1. Configure the service endpoint:
  • Host - Use the appropriate endpoint for your data center:
    • api.us-west-1.saucelabs.com for US West
    • api.us-east-4.saucelabs.com for US East
    • api.eu-central-1.saucelabs.com for Europe
  • Application Protocol - HTTP
  • Port - 443 with TLS
  • Forward to Port - 443 with TLS
  • Authentication method - HTTP Authentication
  • Authentication scheme - Basic
  1. Sign into your Sauce Labs account.

  2. In the upper-right corner of any page, click the user icon and select User Settings.

Sauce Labs Dashboard to User Settings

  1. Under User Information, copy the User Name. Scroll down the page and under the Access Key section, click Copy to clipboard to copy the Access Key. Securely store both values for later use in the tenant configuration. For more information on authentication, please refer to the official Sauce Labs documentation.

Sauce Labs Username and Access Key

  1. Create a new Credential Provider.
  • Name - Choose a user-friendly name.
  • Credential Type - Username & Password
  • Username - Provide the User Name copied from Sauce Labs.
  • Password - Provide the Access Key copied from Sauce Labs.

Aembit now handles the credentials required to access the Server Workload, eliminating the need for you to manage them directly. You can safely remove any previously used credentials from the Client Workload.

If you access the Server Workload through an SDK or library, it is possible that the SDK/library may still require credentials to be present for initialization purposes. In this scenario, you can provide placeholder credentials. Aembit will overwrite these placeholder credentials with the appropriate ones during the access process.

  • Create an Access Policy for a Client Workload to access the Sauce Labs Server Workload. Assign the newly created Credential Provider to this Access Policy.
  • You will need to configure the TLS Decrypt feature to work with the Sauce Labs Server Workload.