Articles in this section

Provide mock data for testing flows

Mock data lets you configure and test a flow step without waiting on a live call to the source or destination application. This article covers entering mock output data for exports and lookups, mock response data for imports, and generating either automatically with Celigo Copilot. For the JSON structure mock data must follow, see The integrator.io canonical format for mock data. For using mock data as part of a full test run, see Run a flow in test mode.

Mock data can't exceed 1 MB or 10 records for either exports/lookups or imports.

Provide mock output data for exports and lookups

  1. Open the export (or lookup) and go to its Mock output panel.
  2. Enter your own sample data in integrator.io canonical format, editing directly in the Mock output JSON editor.
  3. If no mock data has been added yet, select Populate with > Live data to replace the editor's contents with preview data retrieved from the export application. The Live Data option is shown by default in the Populate with drop-down, but you still need to select it to trigger the data fetch.

    Populate with menu for mock output data

If the data you enter doesn't match canonical format, integrator.io shows "Mock output must be in integrator.io canonical format" and prompts you to fix it.

Mock output panel with the Populate with drop-down

You can also add mock output data to generic webhook listeners the same way — except that listeners don't support fetching live preview data, so you have to enter mock data manually.

View records in JSON or tree format

Switch between JSON and Tree view to inspect records. Tree view makes it easier to navigate complex, hierarchical payloads and find specific fields, but you can't edit data while in Tree view. JSON is the default view, and view preferences aren't saved across sessions or pages.

Provide mock response data for imports

  1. Open the import and go to its Mock response panel — available for both custom flows and Integration app flows.
  2. If a preview panel is available and no mock data has been added yet, select Populate with > Live data to send a request to the application and populate the field with a real response.

    Populate with menu for mock response data

  3. Otherwise, enter your own mock response data directly, in valid integrator.io canonical JSON format. integrator.io confirms the JSON is valid once you enter it; if it doesn't match canonical format, you're prompted to fix it.
  4. Select Save or Save & close.

The mock response data you provide for an import applies only to that import and its own components — mapping, transformation, and hooks.

Generate mock data automatically with Celigo Copilot

Celigo Copilot can generate mock output and mock response data for you, based on a description of the fields you're working with — useful for quickly testing a flow even when the source or destination system is unavailable.

For example, prompting Copilot with a scenario involving expenseNumber, expenseAmount, and submittedBy fields produces:

  • Mock output data for the export step's Mock Output panel, in integrator.io canonical format, simulating multiple exported records.
  • Mock response data for the import step's Mock Response section, in the canonical import response structure, representing successful processing of each exported record.

Review and adjust Copilot's output the same way you would data you entered manually — it still needs to match canonical format and stay within the 1 MB/10-record limit.