The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing

Insights

External Resources

More Info


Page tree
Skip to end of metadata
Go to start of metadata

Authentication Required

Both of these configurations will only work for browsers logged in using your account, but you can use authentication tokens to make this work for anonymous viewers. For more information about creating authentication tokens, see Building Sharable Links to Test Results.

<script src="https://app.saucelabs.com/video-embed/YOUR_JOB_ID.js?auth=AUTH_TOKEN">
</script>

Embedding Pages for EU DC and Headless DC

To embed the page for EU DC test, you need to use the app.eu-central-1.saucelabs.com domain.

<script src="https://app.[eu-central-1|us-east-1].saucelabs.com/video-embed/YOUR_JOB_ID.js?auth=AUTH_TOKEN">
</script>

Embedding Full Test Pages

You can embed test pages in CI test results or other test reports. Using the following format, add the HTML to any page where you need to embed test results, replacing YOUR_JOB_ID with the ID of the job you want:

<script src="https://app.saucelabs.com/job-embed/YOUR_JOB_ID.js">
</script>

Embedding the Video Player

You can also embed videos in CI test results or other test reports. Using the format below, add the HTML to any page where you want to embed job videos, replacing YOUR_JOB_ID with the ID of the job you want:

<script src="https://app.saucelabs.com/video-embed/YOUR_JOB_ID.js">
</script>

Optional Parameters

By default, an embedded test iframe has a width of 1024px and a height of 768px. If you want to change the iframe size, use the "width" and "height" query parameters.

For example:

<script src="https://app.saucelabs.com/video-embed/YOUR_JOB_ID.js?width=100&height=100">
</script>