> ## Documentation Index
> Fetch the complete documentation index at: https://help.maestra.io/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Test a Flow

## Why conduct a testing before launching your flow?

By testing your flow, you can:

* make sure that the **expected number of customers** complete the flow;
* verify **if your conditions are correct and how your customers are divided into branches**;
* look how a **specific customer goes down the flow**
* **test your campaigns** on real events without sending them to your customers.

Meanwhile, **group of steps are not completed and expectations are ignored** in the test mode (campaigns in steps only generate messages but do not send them).

In other words, to conduct a fast testing with minimum actions, you do not have to create a simplified flow version by removing promo codes or bonus points generation or by limiting expectation time down to 1 minute.

You can just enable testing mode, so that you can test your flow with its final settings.

## How to launch a testing

Prepare your flow and press the "**Test**" button:

<img src="https://mintcdn.com/maestraio/8PKiDbR3rMJsCzSE/images/imported/00_howtotestFlow.png?fit=max&auto=format&n=8PKiDbR3rMJsCzSE&q=85&s=c5f0a42ecf147ee82e695c69ededb76b" alt="00_howtotestFlow" width="2928" height="1206" data-path="images/imported/00_howtotestFlow.png" />

#### How the testing mode operates

After the testing mode is enabled, a corresponding icon will appear in your flow. First runs are being calculated:

<img src="https://mintcdn.com/maestraio/-w5Ud9QNiG7Y4nor/images/imported/01_howtotestFlow.png?fit=max&auto=format&n=-w5Ud9QNiG7Y4nor&q=85&s=f800ff6df1cefe639a5a8efa42f43a77" alt="01_howtotestFlow" width="2826" height="1174" data-path="images/imported/01_howtotestFlow.png" />

#### What runs go down to a test launch?

* event flows are launched by an initial node event;
* bulk flows are implemented once after the launch on the customers matching “Launch conditions” filter in Schedule node (10,000 customers maximum). Meanwhile, launch time settings are ignored.

#### Which nodes and settings are run in the test launch?

Testing **includes settings** of nodes, such as:

* event;
* schedule (filter only);
* distribution to the branches of the flow;
* limit (in a process launch, test runs are reset automatically)
* conditions.

The nodes and **settings below are ignored**:

* expectation
* group of steps (however, the testing mode is activated automatically for all campaigns in the flow → messages are generated but not sent);
* A/B testing (the testing is not launched, your clients are just divided into branches, as in the flow splitter node);
* execution frequency (event flows are executed every time a relevant event occurs, while bulk flows are executed only once after the test launch on all the customers matching the filter criteria. To repeat it, create a new version of the flow and launch a new testing);
* start and end date of flow execution;
* [transactionality](/flows/what-is-a-transactional-flow) (events in the test are processed without a priority).

#### Can you launch a test flow and a process flow at the same time?

Your flow can simultaneously contain one version only, either a test one or a process one.

Copy your process flow and launch your test there for a parallel launch.

### Testing results

#### Customer distribution and flow runs

Run mode operates like in a regular flow. The toggle feature is available after at least one customer enters the flow.

<img src="https://mintcdn.com/maestraio/59KyfifOW7tLz5QR/images/imported/02_howtotestFlow.png?fit=max&auto=format&n=59KyfifOW7tLz5QR&q=85&s=11d7be4204bafa3ae75a3fc8f4fd15bb" alt="02_howtotestFlow" width="2928" height="1220" data-path="images/imported/02_howtotestFlow.png" />

You can also choose customers from the branches and click on the icon next to the customer's name to see their runs:

<img src="https://mintcdn.com/maestraio/59KyfifOW7tLz5QR/images/imported/03_howtotestFlow.png?fit=max&auto=format&n=59KyfifOW7tLz5QR&q=85&s=b2530a13eaf427d1f6086c348aaeefe7" alt="03_howtotestFlow" width="2882" height="1146" data-path="images/imported/03_howtotestFlow.png" />

<img src="https://mintcdn.com/maestraio/nXS6QsINTx63g9ke/images/imported/04_howtotestFlow.png?fit=max&auto=format&n=nXS6QsINTx63g9ke&q=85&s=2ff3b2f833b840c802ba64fa9c06b17c" alt="04_howtotestFlow" width="2934" height="1222" data-path="images/imported/04_howtotestFlow.png" />

To view a specific user's way down the flow, you can also go to "Customer flow interections" and find the user by their ID:

<img src="https://mintcdn.com/maestraio/5322-upQA3cGdluA/images/imported/05_howtotestFlow.png?fit=max&auto=format&n=5322-upQA3cGdluA&q=85&s=b2ab4a66a481b8bc11e3c007f5acfc46" alt="05_howtotestFlow" width="2930" height="1124" data-path="images/imported/05_howtotestFlow.png" />

<img src="https://mintcdn.com/maestraio/5322-upQA3cGdluA/images/imported/06_howtotestFlow.png?fit=max&auto=format&n=5322-upQA3cGdluA&q=85&s=30409a3fbf89baae8924a095b64f67be" alt="06_howtotestFlow" width="2934" height="904" data-path="images/imported/06_howtotestFlow.png" />

#### Generated campaigns

To view the generated messages, go to the corresponding tab in the node with the campaign and click on the ‘eye’ icon:

<img src="https://mintcdn.com/maestraio/2_WUUqtXTQTrF_2i/images/imported/07_howtotestFlow.png?fit=max&auto=format&n=2_WUUqtXTQTrF_2i&q=85&s=765095fe19a1b307900f6a23cbe98cab" alt="07_howtotestFlow" width="2932" height="1466" data-path="images/imported/07_howtotestFlow.png" />

Generated campaigns from all nodes are collected in the tab "**Executions and mailing campaigns**" → "**Generated messages**":

<img src="https://mintcdn.com/maestraio/2_WUUqtXTQTrF_2i/images/imported/08_howtotestFlow.png?fit=max&auto=format&n=2_WUUqtXTQTrF_2i&q=85&s=b28b4006e072048fc899fbb6d3b3da06" alt="08_howtotestFlow" width="2930" height="1244" data-path="images/imported/08_howtotestFlow.png" />

<img src="https://mintcdn.com/maestraio/hDwb_Ye73XB_-pfV/images/imported/09_howtotestFlow.png?fit=max&auto=format&n=hDwb_Ye73XB_-pfV&q=85&s=afaee889515e2b66a1f39fd340dd9dcf" alt="09_howtotestFlow" width="2932" height="1270" data-path="images/imported/09_howtotestFlow.png" />

For each node, mailings for the last ten clients are displayed.

For repeated runs, the last letter generated for the client will be shown.

## Testing termination and flow launch

After you conducted the testing and analyzed its results, you can:

* **Pause your test**. You can resume it later; the statistics will be common within one version.
* Conduct a new test. To do this, go to the flow editing page, make your changes, and launch the new test. As this is a new version, the statistics in it will be reset.
* Launch a flow. To do this, go to the flow editing page—a process flow version will be created with the same settings. Launch it. Meanwhile, the test version is paused automatically:

<img src="https://mintcdn.com/maestraio/hDwb_Ye73XB_-pfV/images/imported/11_howtotestFlow.png?fit=max&auto=format&n=hDwb_Ye73XB_-pfV&q=85&s=2271479da92327cebd55ffb6be03e5a9" alt="11_howtotestFlow" width="2936" height="1236" data-path="images/imported/11_howtotestFlow.png" />

<img src="https://mintcdn.com/maestraio/EeW0Po78IZGyB5gF/images/imported/13_howtotestFlow.png?fit=max&auto=format&n=EeW0Po78IZGyB5gF&q=85&s=c8bd1c847c66f3b1fded4e59c6b1325b" alt="13_howtotestFlow" width="2912" height="1164" data-path="images/imported/13_howtotestFlow.png" />

#### What happens to the test runs?

Nothing. They are not counted and, as a result, do not affect execution frequency counter.

You cannot launch processing of the events of the test.

#### How is the test displayed in the flow history?

The test is a separate flow version.

It is marked by a corresponding icon in the flow history. Its launch and stopping are recorded as in regular versions:

<img src="https://mintcdn.com/maestraio/EeW0Po78IZGyB5gF/images/imported/14_howtotestFlow.png?fit=max&auto=format&n=EeW0Po78IZGyB5gF&q=85&s=5489fa7c323f489e3f7d8f000833a94e" alt="14_howtotestFlow" width="2936" height="1306" data-path="images/imported/14_howtotestFlow.png" />
