Agentic testing - Momentic

Momentic Documentation

Momentic tests can mix preset steps and AI actions. A preset step names an operation, such as clicking Sign in or checking that a dashboard loads. It can still use AI to locate an element or evaluate an assertion. An AI action gives a runtime agent a goal and lets it choose the steps. Use one when the path depends on the current application state. Review its trace and assert the expected outcome.

When to reach for agentic testing

Prefer preset steps for critical paths where you need an explicit sequence and specific assertions.

AI action

AI action is the step behind agentic testing. It accepts a natural-language goal and lets the agent drive the browser or app until the goal is complete.

fileType: momentic/test/v2
id: gentle-river-lantern
url: https://app.example.com/signup
steps:
  - act:
      goal: Complete the new-user signup flow using a fresh email.
      postcondition: The welcome screen is visible.

The agent picks elements, types values, scrolls, waits for network activity, and handles modal dialogs on its own. When the agent reaches the goal, the step passes; when the agent gives up or times out, the step fails with a trace of what it tried.

Version: V2 vs V3

AI action ships in two versions, selectable per step from the Version dropdown in the editor.

The V3 AI action is in beta and may change.

V3 is available for web and mobile. New AI action steps default to V3; you can keep existing V2 steps, but the editor does not offer V2 for new steps.

Pairing with assertions

Wrap agentic steps with explicit assertions ( AI check, Page check, Element check) so you verify the outcome, not only that the agent “finished”. Agentic steps are flexible but non-deterministic; assertions check the result.

Reliability tips