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

# Modules

> Reusable step groups shared across tests

Modules let you group steps together and reuse them across tests. They're useful for common flows like login, navigation, or setup sequences.

## Creating a Module

**From the Library:**

1. Go to **Library** > **Modules** tab
2. Click **New module**
3. Name it and add steps (same step types as the [test editor](/tests/creating-tests/test-editor))
4. Save. The module is now available org-wide.

**From the test editor:**

If you've already written a flow you want to extract, select multiple steps in the editor (click and drag, or shift-click) and a popup toolbar appears. Click the **Module** button to turn the selection into a new module. Revyl replaces the original steps with a single Module step that references your new library entry.

## Using a Module in a Test

In the test editor, add a **Module** step and select the module by name. The module's steps execute inline during the test run. Changes to the module automatically apply to all tests that reference it.

Each module shows how many **steps** it contains and how many **tests** currently use it, so you can gauge the impact of edits before saving.
