Skip to main content

Run from the command line

Web tests replay from the command line — headless for CI (no window) or headed to watch. The trq CLI is a standalone binary you install separately; see the full CLI docs for web + mobile.

Play a session

trq play login # headless
trq play login --headed # show a real browser window

Trq launches a browser, replays each step, prints per-step pass/fail, and exits 0 (all passed) or 1 (any failed) — so a run is a normal CI gate. The first run downloads a Chromium browser and caches it; after that it's self-contained.

A folder or a suite

trq play --parallel # every test in the folder, several at once
trq play --suite smoke # a saved suite

Swap base URLs and credentials per environment with --env:

trq play --suite smoke --env staging

Reports for CI

Write a machine-readable report your pipeline understands:

trq play --suite smoke --reporter junit --out results.xml

For install, CI examples (GitHub Actions / Jenkins), and the full flag list, see the CLI docs.