Skip to main content
Ask AI

Get Started with Maestro Analytics

Install @testrelic/maestro-analytics alongside your existing Maestro project and start capturing flow results, per-step timing, screenshots, and video in minutes. Your YAML flow files stay completely unchanged.

Requirements

RequirementVersion
Maestro CLILatest
Node.js≥ 18
Maestro CLI must be installed first

If you have not installed Maestro yet, run:

curl -Ls "https://get.maestro.mobile.dev" | bash

Verify with maestro --version before continuing.


Step 1 — Install the package

AI Prompt — Install @testrelic/maestro-analytics
Install @testrelic/maestro-analytics in this project.

1. Run: npm install @testrelic/maestro-analytics
2. Verify the install succeeded by checking package.json has
"@testrelic/maestro-analytics" in dependencies.

Show me the updated package.json dependencies section.

Step 2 — Choose a usage mode

There are two ways to use @testrelic/maestro-analytics with your existing suite. Choose whichever fits your workflow.

Replace maestro test with npx testrelic-maestro test. Your YAML flows are passed through unchanged — no modifications needed.

AI Prompt — Run Maestro flows with TestRelic
Update the script that runs my Maestro test suite so that it uses the
TestRelic CLI wrapper instead of the plain maestro command.

Replace:
maestro test ./flows

With:
npx testrelic-maestro test ./flows

If the project uses a package.json script (e.g. "test:mobile"), update
that script too.

Show me the updated command and any changed package.json scripts.

After the run completes, a local HTML report is written to ./test-results/testrelic-maestro.html and opened in your browser automatically.


Mode 2 — Post-run parser

If you already run Maestro in CI and cannot change the invocation command, run your existing suite normally and then call testrelic-maestro report to parse the artifacts afterward.

AI Prompt — Parse existing Maestro artifacts with TestRelic
My Maestro suite already runs with:
maestro test --format junit --output report.xml --test-output-dir ./artifacts ./flows

After the Maestro run finishes, add a second step that parses those artifacts
with TestRelic:
npx testrelic-maestro report --junit report.xml --artifacts ./artifacts

If the project has a CI config file (e.g. GitHub Actions .yml), add this as
a new step after the existing Maestro step.

Show me the updated CI config.

Step 3 — Verify the local report

After either mode completes, check that the local report was generated:

Verify output
ls ./test-results/
# testrelic-maestro.json
# testrelic-maestro.html

Open testrelic-maestro.html in any browser to see the interactive timeline with flow results, per-step timing, screenshots, and any AI-detected defects.

Auto-open

By default the HTML report opens in your browser automatically at the end of every run. Pass --no-open to disable this behaviour in CI.


Next steps

  • Cloud Quickstart — upload results and artifacts to the TestRelic dashboard for AI analysis and team-wide observability