Skip to content

Fixtures

A Fixture is a table of records you author, so a flow can be run against known values. It belongs to the Test centre and lets you see what a flow does before anything real depends on it.

The two are easily confused.

A register is your organisation’s actual list: your suppliers, your vehicles, your sites. It is maintained by whoever is responsible for it, read by live lifecycles and live runs, and its rows can be corrected and destroyed.

A Fixture is test data. It holds whatever values make a useful test, including unusual and edge cases.

If you are about to put your genuine supplier list into a Fixture, you want a register.

Fixed: rows you author. Useful when specific cases matter, such as an application that should be declined, one on a threshold, or one with a field missing.

Generated: rows produced from a seed and a set of rules, one rule per field. The same seed and rules always produce the same rows, so a failed run can be repeated against exactly the same rows.

Fields with no rule are filled automatically from their type.

By default a Fixture is only available in the Test centre. A flow cannot read it until that is turned on for the Fixture.

A second setting marks the rows as demonstration data. When it is on, every screen showing a value from that Fixture shows a synthetic badge, so demonstration data cannot be mistaken for real records.

Both settings start off.

There is a node for it, and it can either add rows or replace them outright.

When a flow writes, the Fixture records which flow and which run wrote it, and when, and the editor shows this.

This lets a Fixture be refreshed from a real source without becoming the place that data is kept.

Use a Fixture to try a flow, to compare two versions of one, and to keep edge cases that should be tested again.

Use a register for a list your organisation maintains and your live work depends on.

Use a Connection when the values should come from a system that already holds them, rather than from a copy.