Test Scenario Data

Test Scenario Data is a snapshot of all the relevant records created during the processing of a Transaction and is used to both generate the test and ascertain the results of each test run.

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.

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

FieldTypeDescription

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.