/ Docs

Sauce Labs

Last updated October 13, 2025 · View as Markdown

SauceLabs-logo.png Sauce Labs is a widely used cloud-based platform for comprehensive automated and manual testing of desktop and mobile applications. It allows users to run tests in the cloud on more than 700 different browser platforms, operating systems and device combinations.

In order to integrate Sauce Labs with Relyance AI you will need a Sauce Labs Username and Access Key.

In Sauce Labs:

SauceLabs-1.png SauceLabs-2.png

  1. Login to your Sauce Labs dashboard.

  2. Navigate to Account> User Settings.

  3. Scroll down to find your Access Key.

  4. Copy the key to be used in Relyance AI.

In the Relyance AI application:

  1. Login to your Relyance account.
  2. Navigate to the Settings Menu in the bottom left-hand side.
  3. Select Integrations.
  4. Click on the Vendor Integration tab.
  5. Find the Sauce Labs integration card and click it to open its connections.
  6. Under Authentication Method, choose Custom.
  7. Paste the Username and Access Key into their respective fields.

SauceLabs-3.png

The Authentication step asks for:

  • Username: required.
  • Access Key: required; held as a secret.
  1. Click Authenticate.
  2. At this point, you should see the following result on the Vendor Integrations page:

SauceLabs-4.png

  1. Congratulations, you are now connected to Sauce Labs.

Manage this integration with Terraform

Connections for this integration can be managed as code with the Relyance Terraform provider. Non-secret fields go in auth.params; secret fields go in auth.secrets_wo, which is write-only — never stored in Terraform state. Rotate secrets by bumping auth.secrets_wo_version.

resource "relyance_integration_connection" "saucelabs" {
  vendor = "saucelabs"
  name   = "<your connection name>"

  auth = {
    method = "access-key"
    params = {
      username = "<username>"
      data_storage_location = "us"
    }
    # Secret fields are write-only: sent to Relyance, never stored in state.
    secrets_wo = {
      access_key = var.saucelabs_access_key
    }
    secrets_wo_version = 1
  }

  scans = { "property-inspection" = { enabled = true } }
}