Test Bench — /test-bench

Testing a freshly configured integration used to take you out of the product. Exercising a
Collection with Input Parameters meant building a POST in Postman or Insomnia; watching a
Delivery happen meant a message actually arriving — that is, waiting for a real cycle.
The cost was not just the click. The test payload lived in one person’s collection: nobody reviewed it, nobody re-ran it when the integration changed, and it did not travel along when the integration was installed at another customer.
The Test Bench brings that inside the CMS.
The choice is an Application › Interface › Collection/Delivery tree, with a search that finds by Application, Interface, code or type — the same one as Forward Collection. It offers the Collections and Deliveries of the Interfaces you can see, except those of the Help Desk tools: to test a ticket destination, use the Open ticket button in ITSM Configuration, which goes through the destination’s body.
Above the tree, the Collection | Delivery | Router switch picks what to test. Router shows up for whoever can see Routers and has its own flow — see Testing a Router.
The rule behind the screen
The test runs down the production path, marked as a test. There is no second execution engine: testing a Delivery means injecting a real message into the Interface, and testing a Collection means calling the same executor the scheduler calls.
That is a decision about trust. A separate test path would be a guarantee that the test passes and production fails — which is exactly why a green test here is a statement about the real system, not about a simulation of it.
The “test” mark
If the test goes down the production path, it has to be distinguishable from real traffic. Every message created here is born marked, and the mark changes what the system does with it:
| What a test message does not do |
|---|
| Does not block the Interface, even if it hits a Business Error set to “block queue” |
| Does not fire delivery error, business error or blocked queue alerts |
| Does not count on the dashboards, in the reports or in the Daily X-Ray |
| Does not enter the Observed Contract — a test payload never contaminates the schema inferred from traffic |
On the Messages screen, in the interface monitor and in the message detail it carries an amber flask, which shows who fired it on hover, and the traffic filter lets you pick between real and test, real traffic only or Test Bench only.
The Publish to source mode is the exception, and a deliberate one — see below. The message born there is real, because the CMS has no way to tell the stimulus you produced from the one the equipment produced.
The four modes
The mode is the screen’s central question: how far does this test go?
| Mode | What it does | Writes outside the CMS? |
|---|---|---|
| Dry run | Resolves credential, variable and template and shows what would go out | No |
| Read | Runs the fetch at the source and shows what came back; stores no message and delivers nothing | Reads, does not write |
| Publish to source | Produces the stimulus at the source itself — publishes to the broker, writes to the PLC, drops the file in the folder — so the Collection reacts on its own | Yes |
| Full cycle | Goes down the entire production path: stores the message and delivers to the real destination | Yes |
Dry run is the everyday configuration mode: it shows the method and URL, the query string, the headers the request would really carry (including the ones the CMS adds), the already-transformed body, or the SQL command with its binds — all without anything leaving the machine. It is the one mode that works well before activating the Definition, which is why the “+N inactive” box exists in the picker: the most useful moment for a dry run is right before switching the integration on.
Read exists only for Collections, and not every Collection takes it. When it does not, the screen
says why instead of just refusing — a FILE_WATCH has no “fetch now”, an HTTP_POST would write to
the destination, a push type waits for the outside world to call.
Publish to source is what gives a test to the connector that is not called but triggered: MQTT, OPC UA, Modbus and watched folders. You publish to the topic, write the trigger value or create the file, and watch the Collection react down its normal path.
Where the payload comes from
Typing JSON from scratch is the screen’s last option, not its first. Above the editor sit the sources the CMS already has:
| Source | What it is |
|---|---|
| Model payload | The model from the configuration. It comes from the Delivery’s Input Payload Template; without one, it is built from the fields the Delivery type expects — OPC UA, Modbus and PI write tags, Sparkplug metrics, the UNS Delivery mapping —, with each one’s default value. With the editor empty, it is loaded into the editor as soon as you pick the Definition |
| From the Observed Contract | An example built from the schema inferred from that Definition’s real traffic |
| Example N | A sample declared by hand, stored in the Observed Contract |
| A real message | The payload of one of the last messages that went through, with date and time |
A Definition with an Encryption Rule is not offered real messages as a starting point — and the screen says so instead of omitting it silently. Decrypting to fill in a test field would work around the very rule somebody configured on purpose.
The editor is the same Monaco used across the product, and it highlights by the language of the Definition’s own Content-Type — an XML body does not come out underlined in red for being read as broken JSON.
When the Definition has an input contract (the “comes from outside” fields of an SAP Delivery,
the Input Parameters of a Collection), the payload gets a Form | JSON switch. In the Form, each
contract field is a box, with the required ones marked — nobody needs to remember the exact name of
localInstalacao. Both views edit the same content: switching from one to the other loses nothing.
Sending as a producer Application
On a Delivery with a Transformer by producer Application, Full cycle gains the Send as field. Without it, the test would only follow the path of whoever already sends the Delivery format, and each producer’s Transformer would go untested.
| Option | What the test does |
|---|---|
| No producer Application (already in the Delivery format) | The default. Only the Delivery transformer runs |
| A producer (code — Transformer) | The payload goes through that producer’s Transformer before the Delivery’s, like a real message from it. Write it in the format that producer sends |
Once a producer is chosen, the editor and the Content-Type sent follow the producer’s — XML, if it sends XML — and the screen stops checking the Input parameters: the payload is in the producer’s format, and it is the producer’s Transformer that brings it to the contract. The sender is still you, and the message is born marked as a test like any other from here. In the result panel, the producer’s Transformer shows up before the Delivery’s, in the order they ran.
A real message that went through a producer’s Transformer suggests what the producer sent, with its code next to the date — and picking it already sets Send as to the same producer and switches to Full cycle. Otherwise the test would send the producer’s dialect as if it were the Delivery format.
The field only exists in Full cycle: Dry run starts from a payload already in the Delivery format and does not run the producer’s Transformer, so offering the producer there would show a request that would never go out. With Send as filled in there is no Save as scenario either — the scenario does not store the producer, and replaying it would send the producer’s dialect without the producer’s Transformer.
Before writing to the real destination
Full cycle and Publish to source ask for a typed confirmation: you write the Definition’s code to proceed. The text names the destination, the kind of operation and — for publishing to the source — that the resulting message will be real.
The confirmation exists so somebody sees which destination is about to be written. It does that the first time; from the second on, in a tuning session where the same test is fired ten times over, it would become repeated typing. Hence the “don’t ask again” box, with deliberate limits:
- it is per Definition and per mode — waiving Full cycle does not waive publishing to the source, which is graver;
- it lasts while the tab is open, and dies with it;
- while it is active, the screen warns in amber that the next click fires straight away, with a button to start asking again.
What happened
The right-hand panel tells the story in the order it happens: what was sent first, the destination’s answer after. Seeing the response without the request forces you to guess what the CMS assembled — and that is where most configuration mistakes live.
Each step expands and collapses: request, query string, headers, body, command, binds, response. On content steps there are two tabs, Preview (formatted) and Raw (byte for byte, as it went).
- A Global Variable used as a bind is named, without its value.
- Content protected by an Encryption Rule shows up encrypted, with a note that decrypting needs its own Tool.
- When a message was created, there is a direct shortcut to it on the Messages screen.
- When a forwarding’s condition was not met, the Forwardings not made box says which destination was left out and why. The Condition Met alert does not fire for a test message.
A Collection does not wait for the Interface cycle
In the Full cycle of a Collection with a destination, the test message is forwarded right away — even with the Interface scheduler turned off or scheduled every hour. Only this test’s messages go: the Interface cycle does not run, so neither the production fetch nor any other message waiting there is taken along.
The exception is a blocked Interface: nothing is forwarded until it is unblocked, and the panel
says “Interface X is blocked”. If the immediate forwarding fails (for example, the internal queue
is unavailable), the panel shows when the next cycle runs — “Waiting for the next cycle of
Interface X: 09/24/2026 15:00” or “runs every N s” — and the Forward now button lets you try
again, for this test’s messages only. The click is recorded in the
Audit Log, as ENCAMINHAR_TESTE_COLETA.
An asynchronous Delivery does not wait for the scheduler
In the Full cycle of an asynchronous Delivery, the test message goes out for delivery right away — even with the Interface scheduler off. Before, it stayed Not Processed until the next cycle, and with the scheduler off it never left. Only this test’s message goes; the rest of the Interface keeps waiting for its cycle. With the Interface blocked, nothing is delivered until the unblock — the same rule as the scheduler.
Testing a Router

With Router chosen, the combo lists the Routers, and the line below it shows how many Deliveries the flow reaches and the out-of-contract policy. The payload opens with the contract JSON to fill in. Coming from the Run as test button on the Router’s Simulate tab, the screen already opens on that Router, with the payload that was typed there.
There are two modes:
| Mode | What it does | Button |
|---|---|---|
| Dry run | Shows the path the payload would take with the saved flow and the Deliveries that would receive it. Nothing is stored or sent | Simulate |
| Full cycle | Runs down the path of an external call: the Deliveries reached really receive it, with the execution and the messages marked as test | Run test |
The screen opens in Full cycle, as for Collections and Deliveries, and it asks for the Router’s code typed in before sending. Dry run creates no message at all: the result says so and, when the path reaches some Delivery, offers the Run as Full cycle shortcut.
The Full cycle result follows the order of what happened:
- the Received payload;
- the Path taken through the decisions;
- the Generated messages, one per Delivery;
- for each message, the Last Destination Return — the response or the error, with the HTTP status — and, on a SQL Delivery, the Executed command with the values.
The panel refreshes on its own until each message finishes. The id shown next to Execution is the Router execution’s, not a message’s: an execution that ended with No destination generated no message, and so it does not show up in Messages. It stays on the Router’s Executions tab.
Getting here the short way
Nobody wakes up deciding to “go to the Test Bench”: you are looking at a Definition and want to see it work. So the main entry point is not the menu, but the Test button on the Collection or Delivery row in Collection Definitions, Delivery Definitions and Integration Flows, and in the Actions card of the Definition form. It opens this screen in a new tab, already pointed at that Definition — the configuration stays open in the original tab.
The Test Bench reads the Definition as stored. If there are unsaved changes on the configuration screen, the CMS warns before opening the test: whatever is on screen and not yet saved stays out of it. Save first to test the change, or test the saved version — the form stays open.
Keeping the test you just ran
A test that worked is knowledge that usually gets lost. The Save as scenario button takes the run that just happened — Definition, mode, payload and parameters — and stores it in a Test Plan, with the option of turning the result you got into an expectation.
If the test failed, the screen says so: the scenario will assert that the failure happens. That is useful to document a known problem, and terrible if it was not the intent — hence the warning, not a block.
Where it sits in the menu
Integration Tests, next to Test Plans and the Simulators. The grouping is a statement about the work: Integration is where an integration is set up, the Lab is where it is exercised. The simulator fakes the source, the Test Bench fires the stimulus — testing an OPC UA Collection means using both together.