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. Check out the section on creating authentication tokens in the topic Building Sharable Links to Test Results for more information.

<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 page for EU DC test you need to use `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 this 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

In addition to full test results, you can embed videos as well. 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

Embedded test iframe by default takes width: 1024px and height: 768px. If you want an iframe to take a different size, you can use 'width' and 'height' query params to change that behavior.

Example:

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