--wait, the command polls until completion and exits non-zero on failure.
Usage
--test-plan or one or more --test-case flags - not both.
Options
Behavior
- Without
--wait- prints the run short ID and exits immediately. - With
--wait- polls untilCOMPLETED,ERROR, orCANCELLED, then prints results. - Exit code is
1if any test case ends asFAILED,0otherwise. - With
--wait --json, progress logs go to stderr so stdout stays clean JSON.
Examples
Application overrides
--application-overrides redirects one or more applications to a different URL, saved environment, or build for this run. Same JSON shape as qatech chat --application-overrides - useful for testing preview deployments, tunnels from qatech tunnel, or any URL not configured as a saved environment.
environment object accepts any of:
JSON output
The shape returned byqatech run --wait --json matches qatech status --json:
result-"PASSED" | "FAILED" | "SKIPPED" | nullrunTestCases[].resultTitle- human-readable failure reason (nullif passed)runTestCases[].evaluationThought- agent’s reasoning about the result