act: when the action needs a
precondition, postcondition, cache control, or other step options.
- Shorthand
- Explicit options
checkout.test.yaml
Write bounded goals
A strong goal has one user intent, enough context to remove ambiguity, and a clear stopping point.- Prefer
Add the cheapest in-stock blanket to the cart and open checkout. - Avoid
Browse the store and make sure everything works. - Include data constraints that matter, such as using a fresh email or choosing an in-stock item.
- Split a long test by user outcome instead of asking one goal to cover an entire product journey.
maxIterations.
Postconditions
The goal tells the AI action what to accomplish. Apostcondition defines the
product state that must be true before the action can pass. Add one to every
meaningful or state-changing AI action:
Caching
After a successful run, Momentic caches the steps generated by the AI action. Later runs replay that path instead of planning it again, making repeated runs faster and more consistent. If the cached path no longer works, failure recovery clears the cache so the action can plan a new path. Setcache: false when the route should be planned again on every run:
Choose the right level of control
Use an AI action when the outcome matters more than the exact interactions. Use a preset step when the interaction itself is part of the behavior under test.
These forms can coexist in one test. For example, an AI action can navigate a
checkout flow while a preset step verifies a specific consent control and the
postcondition verifies the final order.
Knowledge base integration
Use the Knowledge base to give every AI action consistent product context:- Add Terminology entries for product-specific names, internal aliases, and words that have a special meaning in your interface.
- Add an Agent rule for the AI action agent when it should follow an organization-wide interaction convention or expected product behavior.
- Add a Flow when a reusable journey has a known sequence and success state.