Skip to main content

Using the Project Dashboard

After you run an API Test, you can view your results, reporting, and analytics to gain further insight and maximize your testing.

What You'll Need

Test Outcome Report

The Test Outcome Report includes input data details and other useful test information, such as reasons for failure, HTTP requests, and response status codes.

There are three ways to access it:

  • From your Project's Tests section, click on any Test line item
  • From your Project's Dashboard section, click on any Test line item
  • From your Test's Compose section, in the right-hand nav.

Viewing Results

Here's a breakdown of what each report contains:

Test Report Details: metadata about the execution of the test, such as Test Name, Project Name, and Mode (Scheduled or On Request)
Test Report

Outcome (pass/fail status):
Test Report

Assertions: your Test assertions, where a gray dot indicates a pass, red dot indicates a fail, and yellow dot indicates a warning
Test Report Primer Image

Request Components: shows the specific component(s) that you tested.
Test Report Primer Image

Stack Details: click this to view granular details about requests and headers.
Test Report Primer Image
Stack details

Dashboard

The API Testing Dashboard accessible from within a Project displays metrics, logs, and builds, a centralized test management tool that simplifies collaboration and reporting.

Test Logs

  1. Log in to Sauce Labs, then click API Testing.
  2. Click on any Project.
  3. Click the Dashboard tab.
  4. Select the Logs tab.
  5. Select desired filters to find the Test(s) you're looking for, then click Apply. Filters include, but are not limited to: date range, mode (Monitoring (Scheduled) Tests or On-Demand Tests), tag(s), and agent.
    Dashboard Logs Filters

Test Metrics

To view Test performance metrics (latency and fetch):

  1. Log in to Sauce Labs, then click API Testing.
  2. Click on any Project.
  3. Click the Dashboard tab.
  4. Select the Metrics tab.
  5. Select desired filters to find the Test(s) you're looking for, then click Apply. Filters include date range and footprint (the request URL).
    Dashboard Metrics Filters

Test Build Reports

A Build is a collection of test results and metrics associated with a given build ID. To create a Build, you'll need to integrate Sauce Labs API Testing into your CI/CD pipeline, then run multiple tests simultaneously, grouped as a Build, by setting the build value in your config.yml. Sauce API Testing will group all events generated by the Test session under a "build" collector, and test results are collected under Dashboard > Builds. To view:

  1. Log in to Sauce Labs, then click API Testing.
  2. Click on any Project.
  3. Click the Dashboard tab.
  4. Select the Build tab.
  5. Set the date and/or build ID filters, if desired, to find the Test(s) you're looking for. Then click Apply.
    Dashboard Builds
  6. Click on any line item below to view a summary report for that Build.Dashboard Builds
    Dashboard Builds The report contains details such as the build ID, list of Tests belonging to that build, date/time, Projects involved, successful tests, and failed tests.
  7. Under the Event Details column, click Open Report Document to see the results and metrics for each specific test that has been executed in the build.
    Dashboard Builds

More Information