Test results

3 minute read

The Test results view in Run details provides a detailed overview of test suites and test cases executed in a workflow run. This feature allows users to view all test suites and their associated test cases in one location.

A red indicator appears on the Test results tab if a test suite contains failed test cases. A list of test suites and test cases is displayed in the order: Failed, skipped, and passed.

Users can switch between two views: Test suites and Test cases.

The Test suites view displays the following information:

  • Total number of test cases in a test suite.

  • Number of passed, failed, and skipped test cases.

  • Individual test cases, along with their status and related logs.

The test case status is color-coded as mentioned in the table below:

Table 1. Color-coding test cases based on status
Test case status Color

Total test cases

Blue

Passed

Green

Failed

Red

Skipped

Orange

Select a number to view detailed information about the test cases in a test suite.

The Test cases view provides the following information:

  • The test suite associated with each test case.

  • Current status of each test case: Passed, failed, or skipped.

  • Log information of each case, if available.

View test suite details

To view the test results by test suites:

  1. Select Up/down arrows, and then select an organization, sub-organization, or component.

  2. Select Runs from the left pane. The Runs list displays the workflow runs for the selected organization or component

  3. Select the name link of the event that started the workflow run. The Run details displays.

  4. Select the Test Results tab in the left pane. The Test results tab displays.

test suites tab
Figure 1. Test suites view
  1. Indicates that one or more test cases have failed.

  2. Name of the test suite associated with the run.

  3. Select a number listed under one of the options (Total test cases, passed, failed, or skipped) to view details of test cases filtered by that option.

    • Select the number under Total test cases to view all the test cases that passed, failed, and skipped.

    • Select the number under Total cases passed to view only passed test cases.

    • Select the number under Total cases failed to view only failed test cases.

    • Select the number under Total cases skipped to view only skipped test cases.

      Selecting the number under the corresponding column displays the test cases in a detailed view along with the option to view the log.

      test suites detailed view
      Figure 2. Test cases in a test suite based on status
  4. Time is taken (in seconds) to run all test cases in the test suite.

View test case details

To view the test results by test cases:

Select Test cases to view the data specific to test cases. You can use the search option to locate a specific test case.

test cases tab
Figure 3. Test case view
  1. Name of the test case in the test suite.

  2. Name of the test suite in which each test case is included.

  3. Status of the test case associated with the run: Passed, failed, or skipped.

  4. Time taken (in seconds) to run each test case.

  5. Select View log to access the log.

  6. Total number of test cases in the run, including passed, failed, and skipped test cases.

View logs

Use the View log option to access the log information of a specific test case. The logs are available for failed test cases. For passed and skipped test cases, the No log reported text appears.

Log of failed test case
Figure 4. Log of failed test case