# Test Scenario Data

Integration Test Scenario data is used to initially create the new test record *(the record created during the running of the test)* and then to subsequently compare the test results to the expected results.

This is the final step in the generation and setup of Integration Tests. There are various 'Types' of Test Scenario Data which represent the different records used at different points in the processing of data through Unifi. Each of the 'Types' of data are actually a JSON representation of each of those records and are disscussed below.

## Types

### Snapshot

This is a JSON representation of the Snapshot record taken when processing the original Transaction. This data is used to create or update the new test record.

### Stage

This is a JSON representation of the Stage created when processing the original Transaction (both inbound and outbound Stages). It is used to compare to the results of the test run.

### Bond

This is a JSON representation of the Bond created when processing the original Transaction. It is used to compare to the results of the test run.

### Bonded Attachment

This is a JSON representation of the Bonded Attachment created when processing the original Transaction. It is used to compare to the results of the test run.

### Transaction

This is a JSON representation of the Transaction created when it was processed originally. It is used to compare to the results of the test run.

### HTTP Request

This is a JSON representation of the HTTP Request created when processing the original Transaction (both inbound and outbound Requests). It is used to compare to the results of the test run.

## Fields

The screenshot below is a Snapshot 'Type' Integration Test Scenario Data record, but is representative of each of the various types.

![](/files/TXYadQhIfOPINGOGxnrJ)

The following table describes the fields which are visible on the Integration Test Scenario Data record.

| Field     | Type      | Description                                                            |
| --------- | --------- | ---------------------------------------------------------------------- |
| Name      | String    | The Number (unique identifier) of the original record.                 |
| Scenario  | Reference | The Integration Test Scenario this data object belongs to.             |
| Type      | Choice    | Choices correlate to the different transport stack records.            |
| Direction | Choice    | The direction of the original record. Choices: None, Inbound, Outbound |
| Data      | String    | The JSON representation of the original 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/test/test-scenario-data.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.
