AI-powered features for test runs.Documentation Index
Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
classify
Use an AI agent to classify the result of a given test run. The agent inspects
run data (step results, screenshots, and error details) and returns a category
and reasoning for the result.
Currently, only failed runs are classified. Passing runs will return
NO_FAILURE.Arguments
The ID of the run to classify, or the full run URL (e.g.
https://app.momentic.ai/runs/<runId>). The run must be either uploaded to
Momentic dashboard or in
the latest run group run by the CLI, stored locally under the project output
directory.Categories
The classification result will be one of the following categories:The run had no failures; all attempts passed.
The test is out of date with an intentional change in the app flow or UI. The
test needs to be updated to reflect the new behavior.
A failure tied to the test’s intended behavior where the app is clearly
broken, not changed (e.g. an unexpected error message appeared, or something
that was expected to happen clearly did not).
The test is out of date with an intentional change in the app, but the change
is unrelated to what the test is specifically verifying.
A failure unrelated to the test’s intended behavior where the app is clearly
behaving incorrectly (e.g. a bug during login or navigation that prevents the
test from reaching its core assertions).
The test itself should be changed to prevent the failure. Common causes
include race conditions or overly vague AI descriptions.
A rare or intermittent failure caused by outside factors (e.g. a browser
crash, high resource usage).
Application performance issues unrelated to infrastructure (e.g. a loading
spinner that never disappears, slow page transitions, an AI assertion step
that timed out waiting for the page).
An issue with Momentic’s own test execution (e.g. incorrect cache entries,
unexpected locator redirect behavior, obvious AI hallucinations).
Output
By default, output is printed as plain text:Options
Default: In
textHow to print the classification result. Use json for machine-readable output:json mode, all non-error output is suppressed so stdout contains only the
final JSON payload or errors that prevent classification.Suppress the agent’s intermediate reasoning from stdout. By default, reasoning
is streamed as the agent works. This flag is redundant when
--output-format json is set, since JSON mode already suppresses streamed reasoning.Persist the classification result into the run’s metadata. After saving,
downstream tooling sees this classification as if it had been produced
during the run.
This is only available for classifications on local run zips currently.