Plan files
The QA plan format, steps written in plain language with what must then be true, kept in your repository
A plan file lives in your repository, such as .pod/qa/billing.yaml. Each step says what to do, and what must then be true.
name: Billing
systems: [linux]
launch:
linux: { program: /usr/bin/example }
steps:
- do: Sign in as qa@example.com with the password {{secret.TEST_PASSWORD}}
expect: The home page says "Hello, QA"
- do: Open Billing and press Pay
expect: A receipt appears saying "Paid"
timeout_s: 60Not available yet QA on Windows and Android starts once Pod offers those systems with screens.
Once QA runs on Windows and Android, the same plan names them in systems, with a launch for each:
name: Billing
systems: [linux, windows, android]
launch:
linux: { program: /usr/bin/example }
windows: { program: 'C:\Program Files\Example\example.exe' }
android: { package: com.example.app }
steps:
- do: Sign in as qa@example.com with the password {{secret.TEST_PASSWORD}}
expect: The home page says "Hello, QA"Fields
| Field | Type | What it is |
|---|---|---|
name | string | The plan's name, shown on its checks. It defaults to the file's name, such as billing for billing.yaml |
systems | list | The systems to test on: linux, windows, android, macos or ios. A run can name fewer. When the list is empty, the run names the systems itself, and a run that names none is refused |
launch | map | How each system starts the installed app. A web build or an .AppImage needs none |
steps | list, required | The steps, in order |
steps[].do | string, required | What to do, in plain language |
steps[].expect | string, required | What must then be true |
steps[].timeout_s | integer, 1 to 600 | How long the step may take, in seconds |
steps[].max_actions | integer, 1 to 30 | The most actions the step may take before it is judged as it stands |
Writing good steps
- One thing per step. "Open Billing and press Pay" is fine; a step that walks through a whole flow is hard to judge.
- Quote exact text. Text in double quotes in an expectation is checked word for word against the screen's accessibility tree, before any model looks.
- Say what is visible. An expectation is judged from the screen, so name what a person would see, not what the app did inside.
Secrets
A step that needs a secret names it as {{secret.NAME}}. The model sees the name, never the value; the value is typed in for it, with the recording masked while it is typed. A secret may be named only in do, never in expect: a plan that names one in expect is refused.
An untrusted run gets no secrets, and a step that needs one is skipped as untrusted.
Starting an app
| System | launch |
|---|---|
| Linux | { program: /usr/bin/example, args: [--flag] } |
| Windows | { program: 'C:\Program Files\Example\example.exe', args: [] } |
| Android | { package: com.example.app } |
| macOS | { bundle_id: com.example.mac }, or { app: Example.app } for an app in /Applications |
| iOS | { bundle_id: com.example.ios } |
A .deb, .msi, .exe or .msix build needs a launch for its system, and a plan without one is refused. An .AppImage starts itself, and launch.linux can override the program and its args. A web build needs no launch. What each system installs is on Systems.
args is optional everywhere it appears. On Windows, an optional install_args replaces the installer's silent default (/qn /norestart for an .msi, /S for an .exe); it has no effect on an .msix. On Android, an optional activity picks the activity to start; without it, the package's launcher activity starts.