Link Search Menu Expand Document
Course 1: Getting started with API AutoFlow

Lesson 3 Using Data Simulation for Easier Development

One of the most repetitive task as a solution maker is testing the features as you build them.

Wouldn’t it be great if the solution automatically tested itself as you build the features?

That’s what the data simulation feature of API AutoFlow does.

Mock data is simulated or made-up data for the purpose of testing the solution during development.

Note: Simulated data ONLY exists within the product. Which means, when testing outside API AutoFlow using your application or tools such as Postman will not have access to the simulated data.

Lesson Outline

  1. Flow test simulation (Flow Transaction Data)
  2. Action responce simulation

1. Flow Test Simulation

The flow test simulation is a means of mocking the flow’s input data. For example, for HTTP, the input data would be the HTTP request and the output would be the HTTP response.

HTTP server attached flows, a user can simulate HTTP request and see what the HTTP response would be after the folow is complete.

IMPORTANT: Dev Mode needs to be switched on to use the flow test simulation

flow test simulation

Setup the action to echo

Use the data/set action

  1. input value is the HTTP-request-body
  2. output is HTTP-response-body

Flow copy HTTP request to response

Multiple simulation versions

When creating a solution, there are times when the user needs to test with multiple data sets.

By, pressing the + button, you can create as many versions of the test as you need.

flow test simulation create

Use the drop-down to select the version of the flow test simulation.

flow test simulation select

Note: You can delete or pin a version with the buttons provided.

Flow Transaction Data

The process of creating a flow is to design a chain of actions that provides desired response to the request.

By simulating the request data within the product, developers can visualize the expected response as the flow is built and actions are applied.

The flow transaction data is on the bottom of left navigation pane

Key point

  1. Data received by the selected action
  2. Stored in memory

Flow transaction data

2. Action Response Simulation

Calling external data source frequently can be a problem

During solution making, it may not be ideal to execute those actions too many times for reasons such as rate limiting and slow responses delaying the development process.

Actions that interacts with external source as a feature to simulate data. This allows the solution maker to use a mocked data during the development mode

Action mock data


  1. Mock data feature is checked by default. Be sure to uncheck if you want to test with real dataset
  2. Mock data only exists within the API AutoFlow product. Mock data can not be used outside the product.

How to Easily Create Mock Dataset

1. Uncheck the mock data to get the real data

Action mock data

2. Copy the data from the flow transaction data

Action mock data

3. Check the mock data to simulate the data

Action mock data

4. Paste the data in the mock data

Action mock data

NEXT » LESSON 4: Using Data Simulation for Easier Development