# Test Result

When you run an Integration Test, Unifi creates an Integration Test Result record to capture the results of the test run. Each Integration Test Result record will correlate to the Integration Test that was run. The Test Result contains the individual 'Integration Test Scenario Results'. Each of which are tallied and rolled up to the parent record and grouped according to various categories.

## Navigating

Whilst Test Results can be viewed from native ServiceNow, it is envisaged that tests will be run and the results subsequently viewed from Unifi Test Assistant.

{% tabs %}
{% tab title="Native ServiceNow" %}
Navigate to **Unifi > Testing > Test Results** to open a list view, then click to open the desired result .

![](/files/mxO99xRcpKcgVGAnrZkp)
{% endtab %}

{% tab title="Unifi Test Assistant" %}
When you navigate to and open **Unifi > Unifi Test Assistant**, you have a number of ways you are able to view the results.

Unifi Test Assistant opens to the **Dashboard**. From there you can simply click on the desired result from the **Recent Test Results** tile.

![](/files/LUJfqBrF9Gc8uXcTGrAx)

You can also select **Test Results** & then navigate to the desired **Integration Test** (which will open displaying the latest result). *If you know which Test Result you want to see, you can even type it directly in the Search box.*

![](/files/gdvQbdYZUmjzZubrKyw4)

Or from the relevant **Process**, you can also navigate to the desired **Integration** and **Integration Test** (which will open displaying the latest result).

![](/files/Y5onqkyjDriNXoFzK7RX)

![](/files/exKXgL0diHOiX1D1YUyD)
{% endtab %}
{% endtabs %}

## Fields

Depending on where you are viewing the results, the presentation will differ *(though the content is obviously the same)*.

{% tabs %}
{% tab title="Native ServiceNow" %}
![](/files/IRxDY7tPoOBBgrGmR2p9)
{% endtab %}

{% tab title="Unifi Test Assistant" %}
![](/files/rAztHK1VlUd7ERnjfcHh)

For more information on exploring Test Results, see the [Unifi Test Assistant Feature Guide](/unifi/4.2/test/exploring-results.md).
{% endtab %}
{% endtabs %}

The following table describes the fields which are visible on the Integration Test Result record (native ServiceNow).

| Field            | Type       | Description                                                        |
| ---------------- | ---------- | ------------------------------------------------------------------ |
| Number           | String     | The system generated unique identifier for this record.            |
| Integration test | Reference  | The Integration Test this Result record relates to.                |
| Bond             | Reference  | The Bond created during the running of the test.                   |
| Table            | Table Name | The target table of the bonded record.                             |
| Target           | Reference  | The test record created during the running of the test.            |
| State            | Choice     | The State of the test. Choices: Pending, Ready, Running, Complete. |
| Status           | Choice     | The Status of the test. Choices: Passed, Failed, Error, Skipped.   |
| Total            | Integer    | The total number of tests performed.                               |
| Passed           | Integer    | The total number of tests which passed.                            |
| Failed           | Integer    | The total number of tests which failed.                            |
| Pending          | Integer    | The total number of tests which are pending.                       |
| Warnings         | Integer    | The total number of tests with warnings.                           |

### Pending

These tests have been skipped. Either a test has failed (e.g. an unsupported Test Scenario was run - like adding attachments, or an earlier dependant test failed) and has had to be skipped, or there was an error (perhaps during development of the test) and they had to be skipped.

### Warnings

Unifi will log a warning for test results where a discrepancy has been detected. These warnings should be investigated. However, in the majority of cases they should require no further action. For instance, where date/time values exist in the payload, there will always be a discrepancy between the time in the original payload and the time in that of the Test Scenario Result.

Date/time values for the records themselves are ignored because Unifi knows the structure of those records and expects there to be differences for certain defined elements. However, because Unifi has no way of knowing the structure of the payloads *(each integration is able to be defined/structured as required)*, Unifi cannot choose to ignore those elements.

## Related Lists

The 'Integration Test Scenario Results' related list is visible on the Integration Test Result record.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sharelogic.com/unifi/4.2/test/test-results.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
