Skip to main content

Viewing Test Results

After you run a test, you can view the results on the Test Results page. From there, you can:

  • Watch a video recording of the test
  • Review the commands that were issued
  • Read the test log
  • View the test metadata

What You'll Need

Live Test Results

Sauce Labs provides live test results for both real and virtual devices.

To view live test results:

  1. In Sauce Labs, in the left panel, click LIVE and then click Test Results.
Live test results navigation
  1. On the Test Results page, click the Virtual Cloud or Real Devices radio button to view the relevant device results.
Live test results - Virtual or real devices
  1. In the Test Results results list, click a test to view its details. For more information, see Screenshots, Commands, Logs, and Metadata.
Live test results details

Filtering Test Results

You can filter live test results by owner. If the Enable Job Visibility Across Teams organization setting is enabled, the filter dropdown will include all owners in your organization. If it is disabled, you will only see the owners on your team. For more information about this setting, see Security Settings.

Filtering live test results

Automated Test Results

To view automated test results:

  1. On Sauce Labs, in the left panel, click AUTOMATED and then click Test Results.

  2. On the Test Results page, click the Virtual Cloud or Real Devices radio button to view the relevant device results.

  3. In the Test Results results list, click a test to view its details.

  4. To view and manage the results of past automated tests and builds, on Sauce Labs, in the left panel, click AUTOMATED and then click Archive. Here you can use status badges on your code repository or a web page to keep track of your latest test runs (see Status Badges and the Browser Matrix Wizard for more information). For more information about the Archive page, see Archived Test Results.

Filtering Test Results

If you have set up your tests to report whether they have passed or failed, those results will be listed on the automated builds or automated test results page. Once the results have been logged to the page, you can filter the results.

Automated test results filters
FilterDescription
OwnerFilter test results by:
  • Tests that you have run
  • All the tests for your organization
  • Tests run by one of your selected sub-accounts
StatusFilter tests by:
  • Passed
  • Failed
  • Complete (the test completed but was not assigned a Pass/Fail status)
  • In Progress
  • Error
  • Queued
PerformanceFilter tests by level of performance:
  • Highest Score
  • Average Score
  • Lowest Score
  • Running
  • Hide Score

Automated Build Results

To view automated build results:

  1. In Sauce Labs, in the left panel, click AUTOMATED and then click Builds.

  2. On the Builds page, click the Virtual Cloud or Real Devices radio button to view the relevant device results.

  3. In the Builds results list, click a build to view its details.

Filtering Build Results

FilterDescription
OwnerFilter builds by:
  • Builds that you have run
  • All the builds for your organization
  • Builds run by one of your selected sub-accounts
StatusFilter builds by:
  • Success
  • Failed
  • Complete (the test completed but was not assigned a Pass/Fail status)
  • Running
  • Error

Screenshots, Commands, Logs, and Metadata

You can review a variety of data about the tests you have run.

note

Your test assets, including videos, screenshots, and logs, are retained for 30 days. Test parameters and metadata are available indefinitely.

  1. In Sauce Labs, in the left panel, click AUTOMATED or LIVE and then click Test Results.
  2. Click the test whose results you want to view.
  3. On the Test Details page, you can do the following:
  • Click the play button to view screenshots and video of the test. Audio is not recorded.
  • Click the COMMANDS tab to see the API commands that were issued during the test. The COMMANDS tab also includes controls for filtering the commands displayed and playing back the commands.
  • Click the LOGS tab to see the logs generated by your test. The logs you can view are determined by the type of test you ran. For example, web app tests will include a Selenium log, while mobile app tests will contain an Appium log.
  • Click the METADATA tab to see the metadata attached to your test. Some of the test metadata, such as Passed, can be updated via the the Sauce REST API. You can also download video and screenshots of your test in this tab.

Appium Logs

The Appium Log tab in your test indicates that this test ran using the Appium driver. The first line of the log provides information about the Appium version used during your test (for example, info: Welcome to Appium v1.4.0).

To find logging specific to your OS:

  • iOS - The iOS simulator log is embedded within the Appium log. The information from the iOS simulator is grayed out throughout the Appium log and has the tag name info: [IOS_SYSLOG_ROW].
  • Android - To find Android emulator logs, on the METADATA tab, search for the Logcat.log file. This file contains all the information from the Android emulator log.