# Create tests from your results

> AssertionHub turns what your runs captured into ready-made tests, one per event, with its parameters and how many times it should fire on each step. You pick the ones to keep.

Source: https://assertionhub.com/docs/create-tests-from-results
Published: 2026-10-25

Writing tests by hand takes time. AssertionHub can write them for you from what your journey's runs already captured: one test per event, with the parameters it sent and how many times it fired on each step. You pick which ones to keep.

## Where to find it

- On a **journey's page**: **Generate new tests** in its bar.
- On a **result**: **Create tests from this run**, or **Suggest tests** once the journey has tests.

The journey needs at least one run first.

## What you get

One suggested test per event that fires consistently in your latest complete runs, with:

- **The steps it fires on** and **how many times** it must fire there.
- **Its parameters**, as "is set" checks. Parameters that weren't sent every time are listed separately and not added.
- **What triggers it**, usually the event name.

Parameters you chose not to collect are not proposed: they are listed under **Excluded**.

## Pick and apply

The suggestions are grouped by step. An event that fires on several steps has a row on each.

1. Select the rows you want, or use **Select step** or **Select all**.
2. Click **Apply selected** (it shows how many you picked). Each test is created once and attached to every step you picked.

Rows marked **Already on this step** are covered by a test you already have.

## Edit before applying

Click **Edit first** on a row to open the test editor with everything filled in. Change the checks, for example a parameter that must equal a value instead of just being set, then save: the test is attached to that row's step.

## When there's nothing to suggest

- **None of the last results completed the journey:** fix the step that stops the run, run it again, then come back.
- **Nothing fired the same way in all of these runs:** your events change from run to run. Create tests by hand for the ones you care about. See [How to create Tests and Triggers](https://assertionhub.com/docs/how-to-create-test-and-triggers-assertionhub).

## Site checks

A Site check runs AssertionHub's own steps, built from its pages and checks, so tests can't be added to it. Record a journey for the flows you want to test.
