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.
  • View screenshots 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, follow these steps:

  1. In Sauce Labs, click Live in the left panel, and then click Test Results.

    Live test results navigation
  2. On the Test Results page, select either Virtual Devices or Real Devices.

    Live test results - Virtual or real devices
  3. Click on a test to view its details in the results list on the Test Results page. For more information, see Screenshots, Commands, Logs, and Metadata.

    Live test results details

Filtering Live Test Results

You can filter live test results by owner. If the Enable Job Visibility Across Teams organization setting is enabled, the filter dropdown list 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, follow these steps:

  1. On Sauce Labs, click Automated in the left panel, and then click Test Results.
  2. On the Test Results page, select either Virtual Devices or Real Devices.
  3. Click on a test to view its details in the results list on the Test Results page. For more information, see Screenshots, Commands, Logs, and Metadata.

Filtering and Searching Automated 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. After the results have been logged to the page, you can filter the results and search by test name to narrow down the results.

Automated test results filters
FilterDescription
Search by nameFilter test results by name.
Device TypeFilter test results by:
  • Virtual Devices
  • Real Devices
Time RangeFilter test results by:
  • Today
  • Last 7 days
  • Last 14 days
  • Last 30 days
  • All Time
OwnerFilter test results by:
  • Tests that you have run
  • Tests your team has run
  • Tests your organization has run
  • Tests run by another user or team from your organization
StatusFilter tests by:
  • Passed
  • Failed
  • Completed (the test completed but was not assigned a Pass/Fail status)
  • In Progress
  • Errored
  • Queued
BuildFilter test results by tests that belong to a specific build.
PlatformFilter test results by tests that ran on one or multiple operating systems.
BrowserFilter test results by browser (Only for Virtual Devices).
DeviceFilter test results by tests that ran on a specific device.

Automated Builds Results

To view automated build results, follow these steps:

  1. In Sauce Labs, click Automated in the left panel, and then click Builds.
  2. On the Builds page, select either Virtual Cloud or Real Devices to view the relevant device results.
  3. Click on a build to view its details in the results list on the Builds page.

Filtering Builds Results

You can use the following filters to narrow down the 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, click Automated or Live in the left panel, 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 Commands tab to see the API commands issued during the test. The Commands tab also includes controls for filtering the commands displayed and playing back the commands.
  • Click the Metadata tab to see the metadata attached to your test. Some test metadata, such as the test status, can be updated via the Sauce REST API.
  • Click the Video tab to view the video of the test. You can download the video from this tab. Audio is available for automated tests on real devices. Additional configurations are required to record audio with your tests. For more information, see Audio Capture.
  • Click the Screenshots tab to view screenshots. You can download the screenshots from this tab and view them in full screen.
  • 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.

Appium Logs

The Appium Log on the Logs tab in your test results indicates that the 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:

  • For iOS: The iOS Simulator log is embedded in 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].
  • For Android: Android Emulator logs are in the Logcat.log file. This file contains all the information from the Android Emulator log.