The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing


External Resources

More Info

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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Enterprise Plans Only

This feature is available for Enterprise plans only. For more information about other benefits that are included with Enterprise plans, check out our Pricing page.

Chrome Only

This feature is available only for testing web applications with the Google Chrome browser.

Feature is in Beta

This feature is currently in beta. Please fill out our form in order to request access.

Why Use Performance Testing?

Front End Performance Testing is essential in a world where your users demand fast and consistent interaction with your application, and where applications using JavaScript frameworks shift more of the processing work from server-side systems to the browsers themselves. While many development teams will delay user experience testing until the end of their development cycle, or focus only on load/stress testing of their server systems, Sauce Labs offers a front end performance testing tool that you can use to get fast feedback on your web application during the development cycle, and that can be incorporated into your CI/CD workflow. 

How Does Front End Performance Testing Work?

Once the feature is enabled for your organization, Sauce Labs will begin collecting the performance metrics for URLs that were visited during the test execution process and start establishing historical performance baselines for each navigation via a POST URL command. Once the baselines are established, you can incorporate a custom Sauce Labs command into your test scripts to begin generating metrics measured against these baselines. In addition to these metrics, you can also access filmstrips of the page load process and a complete tracing log.

How Do I Get Started with the Beta?

Since this feature is currently in Beta, each user has to be added manually. Please fill out our Beta form, and once you receive a confirmation that you have been added to the Beta, follow these basic steps to start testing your websites front end performance

  1. Enable ExtendedDebugging for your tests by passing ExtendedDebugging: true  as a desired capability
    Check out the topic Debugging Tests with JavaScript Console Logs and HAR Files (Extended Debugging) for more information.
  2. Run tests against latest versions of Google Chrome with Extended Debugging enabled 
  3. Once the jobs are complete, you should see a Performance Tab on the Test Details page.
  4. (Optional) Embed a performance check directly in your functional test by using our custom WebDriver command, as described in Incorporating Front End Performance Testing into Existing Test Scripts

For more information, check out these topics:

  • No labels