Runbooks
Automate the proof a checkpoint needs: draft steps with AI, record a journey or add them yourself, then dry run and publish.
A runbook is the steps an agent runs to prove a checkpoint. Bind a published runbook to a milestone’s checkpoint and gate runs collect that proof automatically, next to the checkpoints people check by hand.
How a runbook is organised
Section titled “How a runbook is organised”Every runbook has three phases:
| Phase | What goes in it |
|---|---|
| Prepare | Setup before the proof, such as opening the app and signing in. Optional. |
| Prove | The main validation steps. Gate runs judge the checkpoint by what Prove does, so it needs at least one step. |
| Restore | Clean-up after the proof. Optional. |
Each step is a keyword from your keyword libraries, like Go To, Click or Fill Text, or a user keyword your team shares. Steps can loop (FOR), branch (IF, ELSE IF, ELSE) and handle errors (TRY, EXCEPT, FINALLY).
Beside the steps:
- Variables: values the steps use, such as
${USERNAME}. Secrets are masked and kept out of logs. - Test data: attach a dataset to run the runbook once per row. Datasets are added in Project settings › Test Data.
Before you start
Section titled “Before you start”- You’re a Quality Owner or Member on the project. Viewers see runbooks with their actions disabled, marked View only.
- To record or dry run, you need an online agent. Drafting with AI and adding steps yourself need no agent.
Create a runbook
Section titled “Create a runbook”- Qmpass.ai›Runbooks
Start a runbook
Section titled “Start a runbook”Select Create runbook, give it a name and an optional Outcome: the business outcome it proves. Or start from a milestone: on a checkpoint, Create a runbook makes one named after the checkpoint.
A new runbook opens with three ways to add steps: Draft runbook with AI, Record runbook and Add steps yourself.
- Runbook›Steps
Add the steps
Section titled “Add the steps”Pick one way, or mix them: drafted, recorded and hand-written steps all end up in the same editor.
- Draft runbook with AI: describe what the runbook should prove. Qmpass.ai matches the screens and endpoints it knows from your UI evidence and API specs, and drafts the steps. Drafting usually takes 20 to 90 seconds. Steps go to Prove; setup goes to Prepare and clean-up to Restore when they’re empty. You review them before anything is added.
- Record runbook: choose an online agent, enter the Starting URL and the phase that receives the steps, then Start recording. Click through the app in the agent’s browser; when you stop, the recorded steps are added after the existing ones or replace them, as you chose.
- Add steps yourself: add keywords one by one and fill in their arguments.
- Runbook›Draft, record & run
Dry run it
Section titled “Dry run it”Choose an online agent and select Dry run on a stage, for example Dry run on QA. The runbook runs against that stage’s app address and environment, on your agent or on your cloud provider.
Last dry run shows how each phase did. If a step fails, the section message says which phase failed and why; fix the step and dry run again.
- Runbook
Publish
Section titled “Publish”Select Publish. Gate runs and checkpoints only use published runbooks, and they keep using the published version while you edit. Edits save as a draft automatically and show Unpublished changes until you publish again.
Bind a runbook to a checkpoint
Section titled “Bind a runbook to a checkpoint”Open the milestone and bind the published runbook to a checkpoint. From then on, every gate run that includes the milestone runs the runbook and keeps its result as evidence. A checkpoint without a runbook stays manual. See Milestones.
Where runbooks run
Section titled “Where runbooks run”- On your agent: a test agent installed on a machine in your network, so it can reach staging behind your firewall. See Agents.
- On your cloud provider: BrowserStack or LambdaTest, with the session link kept with the evidence. See Cloud providers.
Each stage’s environment decides where its runs go and which app address they open. See Environments and test data.
Find runbooks
Section titled “Find runbooks”The Runbooks page lists each runbook’s publish state, last dry run and the checkpoints that use it. Runbooks at a glance points out the ones that need attention: a failed dry run, unpublished changes or never published.