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

The Test Details page for your automated tests presents all the information you need to analyze the performance of your web or mobile application, and the performance of your test. 

Web and Android Testing Only

The test details page presents information for Web testing on all platforms, and Appium and Espresso testing on Android only. To see the test details page for Appium tests on iOS, click the link Switch to Old GUI in the top right corner of the test details page.

Accessing the Test Details Page

Test Asset Retention

Your test assets, including videos, screenshots, and logs, are retained for 30 days. After thirty days, you can still view the Test Details page for information about your test, such as the test parameters and metadata, but these assets will have expired and been removed.

  1. Log in to Sauce Labs.
  2. Go to  Automated > Test Results
    You can also view the details from previous tests through the Archive page. 
  3. Click the name of the test with the results you want to view.
    The Test Details page for your test will open.  

Viewing and Downloading Screenshots and Video

When the Test Details page loads, you'll see a video of the selected browser executing the commands in your test in the top center panel, right under the panel containing the name of your test, the date on which it was executed, the test run time. and the operating system and browser version used in your test. Next to the video is a panel containing the Selenium Commands, Logs and Metadata associated with your test.

  1. Make sure the Commands tab is selected.
  2. Click the start icon for the video.
    As the video plays, the Commands list will advance through the commands used in your test in sync with the video of their execution. If you click on the arrow next to each command, it will open a drop-down display that includes all the command parameters, and the response to it. 
  3. If you want to download the video or screenshots, select the Metadata tab, and then click the appropriate download link..

No audio

While you can watch videos of your tests, accompanying audio is not recorded.  

Viewing and Downloading Test Logs

The logs associated with your test can help you diagnose performance issues and test errors and failures. The kinds of logs you can see are determined by the type of test you ran. For example, Web application tests will include a Selenium log, while mobile application tests will contain an Appium log. The full list of available logs includes:

NameDescription

log.json

All the commands (including responses and timings etc) executed by the automation server (selenium/chromedriver/appium etc) during the test. This is the data that the commands tab is built from

logcat.log

System messages from an Android emulator or device

console.json

JavaScript console log collected when Extended Debugging is enabled; for more information, see Debugging Tests with JavaScript Console Logs and HAR Files (Extended Debugging)

performance.json

Performance metrics collected when Performance Testing is enabled; see Getting Started with Sauce Front-End Performance

automator.log

If a separate driver is used alongside a selenium server, this is the logfile from that driver. For example, when testing using Firefox, a selenium server is used, as well as geckoDriver which is what actually automates the browser. automator.log is the geckoDriver logfile in this case.

selenium-server.log

Logfile of the selenium server if used, or chromedriver for Chrome tests (and edgedriver for chromium Edge tests)

appium-server.log

Appium server logfile for Appium tests (mobile emulators/simulators)

native-log.json

See Mobile App Testing with Native Frameworks on Virtual and Real Devices with Sauce Labs

espresso.log

Log from espresso tests; see: Mobile App Testing with Native Frameworks on Virtual and Real Devices with Sauce Labs

junit.xml

A file generated by junit if used by your test runner (where you execute your tests from)

Viewing Test Metadata

Under the Metadata tab you'll find information about the test itself, including test execution metrics and configuration information.

Viewing Network Metrics

If you have the Extended Debugging feature enabled for your account, this section will display the network performance characteristics of your test, as described in Custom Sauce Labs WebDriver Extensions for Network and Log Commands.

Viewing Performance Metrics

If you have the Extended Debugging feature enabled for your account, this section will display the network performance characteristics of your test, as described in Custom Sauce Labs WebDriver Extensions for Network and Log Commands.

  • No labels