Start Test (Async)
start_testRun a Maestro YAML test file with optional WireMock stub replay. Returns a taskId for tracking progress and capturing results.
Instructions
Run a Maestro YAML test file with optional WireMock stub replay. Replays a static script against a booted simulator — does NOT record new network traffic. Returns a taskId; poll_task_status streams live output, get_task_result returns final pass/fail. With MCA_FLOW_PAUSE_RESUME=on, pauses any active recording for the run and auto-resumes; otherwise errors if a session is active. cancel_task interrupts mid-flow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables passed to Maestro via -e KEY=VALUE flags (e.g., { "APP_ID": "io.appcision.project-doombot" }) | |
| platform | No | Target platform (default: ios) | |
| stubsDir | No | Path to WireMock stubs root directory (session-xxx/wiremock/) containing mappings/ and __files/ subdirectories. If provided, a stub server is started automatically. | |
| yamlPath | Yes | Path to the Maestro YAML test file | |
| profiling | No | Optional performance profiling configuration. When provided, an xctrace (iOS) or dumpsys (Android) profiling session runs in parallel with the test. Results are returned as structured metrics. | |
| debugOutput | No | Path to a directory or filename where Maestro should dump debug output (screenshots, hierarchies, logs) | |
| stubServerPort | No | Port for the stub server (default: auto-select available port) | |
| driverCooldownMs | No | iOS-only: pause after uninstalling the XCTest driver to let port 7001 drain (default: 3000). Only applies on the uninstall path — a healthy driver is reused without cooldown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| status | Yes | ||
| taskId | Yes | ||
| startedAt | Yes |