Ziggy - Services and Product Help

Tests

Testing is a very useful feature for ensuring quality of your Flows.

It can be easy to make a change to a Secret or Connection configuration, for example, that breaks one or more Flows.

Testing strategy

At the basic level, a test will pass if it ends successfully.

A more interesting test might perform a validation on Edge data. If the validation fails, it will cause the Flow, and therefore the test, to fail.

Refer to Structures and Mapping - literal validation objects for more details.

In the example below, you can see the second Javascript Block has an array element that does not pass the validation, causing the Flow/test to fail.

failed validation

Tests listing

The Tests listing is found in the menu bar.

Tests listing

You can see a list of four Test Groups.

  • Each group consists of a set of Flows that should be executed.

  • Click on the group to expand and contract

  • Click the edit icon to change the Test Group name

Executing tests

You can execute tests at three levels.

  • Run all - press the button at the top to execute all tests in the Group and Flow order as you've arranged them.

  • Run Group - press the run icon to the right of the Group to execute all Flows within.

  • Run Flow - with the Group expanded, you can test an individual Flow.

The image below shows an example of Run all. You can see the tests and Flows that have passed are highlighted green. Whereas the Memstore Tests item testy has failed.

All ran

Drilling into failed tests

If a Flow in a test failed, you can press the icon icon to load that Flow with its snapshot data into the editor.

This will show you the snapshot data to help you diagnose the issue.

errored flow

Reordering Groups

The sequence of Tests can be important if some Flows initialise data in some way that subsequent tests rely upon.

Click and drag any group to reorder.

Reordering Group items

To reorder the Flows being tested within a Group, expand the Group and then click on ay flow. This will open a new dialog which lets you reorder the Flow sequence.

Reorder test flows

Adding a Flow to a Test Group

This is done by loading the Flow and then clicking on the flask icon.

If the Flow has been added to one or more Tests, it is colored red.

Add flow to test

If you click the flash, you will see the following dialog, which lets you add or remove the flow from Tests by clicking a Test Group name to swap from one column to the other.

Add and remove
Last modified: 10 February 2025