As tests grow longer, it can be difficult to scan a flat list of steps and understand what each section is doing. To keep tests more manageable, you can now organize related mobile and browser test steps into step groups!
Step groups are named, collapsible containers that you can use to bundle related steps under a shared label, like “Add item to cart” or “Fill out payment form”. Use step groups to give structure to your tests without changing what the steps do.
Benefits of using step groups include:
- Better organization: group related actions under meaningful names to keep tests readable and maintainable
- Less clutter: collapse groups you’re not actively working on in both the test editor and execution results
- Faster editing: drag-and-drop entire groups of steps at once instead of rearranging them individually
- Easier navigation: when reviewing test output, drill directly into the section that matters with collapsible group panels
- More context for agentic testing: step groups provide an additional layer of semantic intent that helps mabl’s agentic testing features better understand and interact with your tests
Try it out
To create a new step group, open a browser or mobile test in the Trainer and click on + (Add step) > Step group.
Give the step group a descriptive name, and then record or drag steps into it.
Organizing a flow with step groups
Step groups appear as collapsible panels with color-coded indent bars and hierarchical numbering (1.1, 1.2, 1.3). Collapse them to focus on what matters, or expand them to see the full picture.
Examples in use
Step groups can contain any step type and combine freely with other mabl features. To give an idea of how you might use them, consider the following examples:
- Structure a long test - group a 30-step checkout flow into “Browse products,” “Add to cart,” and “Complete payment” so you can scan the test at a glance.
- Wrap reusable flows in context - place a shared “Apply coupon” flow and a shared “Enter payment” flow inside a “Complete checkout” step group to show how they fit together.
- Organize a complex flow - add step groups inside a reusable “Create account” flow so that anyone maintaining it can navigate sections like “Profile info” and “Notification preferences.”
- Combine with conditionals - use a conditional to check for a feature flag, then organize each branch with its own step groups and shared flows.
Limitations
- Step groups are only available for browser and mobile tests.
- Loops and parameters are not supported on step groups themselves. Use flows for those capabilities.
- Step groups can be nested up to 4 levels deep.