/qa-skills:run-test-suitefrom qa-skills
Run manual test cases on the live web app with the `agent-browser` skill or on an Android or iOS device with the `agent-device` skill, record a Passed, Failed, or Blocked result with screenshot evidence for each case, push the results to a TestRail test run, and hand failed cases to `report-bug`. Works from `*.test.md` files, a TestRail section, a ticket key, a Bug key, or an existing TestRail run. Reads and updates the app's automation lessons so each run is faster than the last. Use when the user wants test cases run on web, Android, or iOS and each recorded as pass or fail, from a ticket's cases, a section, files, or a TestRail run; for regression, smoke, or fix verification; or because a build is ready to test. Also use to create a TestRail test run, push a run's results, probe the API behind a deployed story for bugs, or check the app's data against the database. Not for writing test cases, filing bugs, or verifying a Bug Dev marked fixed (`verify-bug`).
Ships in qa-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Runs test cases on a non-production web, Android, or iOS app, records one result per case with evidence, and pushes the results to TestRail. Each run leaves the app's automation lessons better than it found them.
References:
results.md and how the results command of sync-test-cases-with-testrail maps it to TestRail.qa-write-test-cases defines the *.test.md cases this skill runs.TestRail commands run the script of sync-test-cases-with-testrail: node <sync skill>/scripts/testrail.mjs <command>, with the setup that skill describes.
When to skip steps:
smoke: yes cases, else one happy-path case per flow, only to capture the requests and reach the screens. Skip Steps 5 and 6: the results stay local, and the report leads with the follow-up question.report-bugCreate the run folder test-runs/<YYYY-MM-DD>-<slug>/ in the QA workspace. A folder of that name whose results.md has untested blocks or results not pushed → resume it. Any other existing folder → add -2, -3: reusing it would overwrite its TestRail result IDs. Find the cases by source:
| Source | Cases |
|---|---|
*.test.md files | Files with testrail_id: run push --dry-run on them first. A case it would update differs from TestRail: pull TestRail's copy into <run folder>/cases, run that, and list the case in the report as differing locally. |
| TestRail section | pull --section <name> --out <run folder>/cases |
| Ticket key | Cases whose refs include the key, in the story's ticket folder or a pull. None found → tell the user the story's cases lack refs; never swap in a whole section on your own. |
| Bug key | Cases whose defects name the key: blocks in test-runs/*/results.md, rows of runs --refs <its story> --details, and the Bug's TestRail web links. Their result blocks in this run keep the key in defects. The Bug's Steps to reproduce also run as a local case in <run folder>/cases/<KEY>.test.md, with the Bug's conditions as preconditions and no testrail_id, unless one of those cases has the same steps. |
TestRail run R<id> | list --run <id> for statuses, then pull --run <id> --out <run folder>/cases. Default scope: cases Untested or Retest in the run, and Failed too for fix verification. |
| TestRail link | Case link: that case. Section link: its group_id is the section ID that list prints; pull that section. A run link the user gives as the case list for a new run: pull --run <id>, without testrail_run_id. |
Scope by kind of run:
smoke: yes cases, else their critical ones, unless the QC picked all.smoke: yes, or the ones the user names.Platform of each case, from its platform: a web option runs in the browser, an Android or iOS option on that OS, and a mobile option on each mobile OS of the run. All, or no platform, runs on every platform of the run: the ones the user names, else the ones the story covers.
Order the cases so setup is shared: group by precondition and start page, and put cases that delete or reset data last in their group.
A case whose preconditions name a trading session (ATO, continuous, lunch break, ATC, PLO, or outside trading hours) runs only in that session's window. Group these cases by exchange and session, order the groups by window start, and run the other cases while waiting for a window. Window times come from the trading sessions topic file that the QA workspace's domain/index.md lists. No time there for an exchange and session the run needs → ask in the Step 2 message. Hand the times the QC types to save-domain-knowledge so later runs do not ask again; the Step 8 report carries its question. Never hard-code session times: they differ by exchange and change with the market's rules.
Write results.md per Results Format: one run block, then one untested result block per case in run order. For a TestRail run, set testrail_run_id: R<id> in the run block; without it, the push creates a new run. For a Bug key, use the run that holds the Bug's failed results when it is open and holds every case in scope. A closed run, or a case in scope outside it → a new run named <KEY> retest (every Bug key, comma-separated, when several), with refs the Bug and story keys. Set milestone: to the TestRail milestone named after the story's sprint, picked as report-bug picks it, or after the release for a regression. No milestone of that name → leave it out and say so in the plan. A case without testrail_id gets an empty case: and stays local; push it first with sync-test-cases-with-testrail to get its result onto TestRail.
Once per platform of the run. Android and iOS follow Device Session in place of items 2, 4, 5, and 7.
automation-lessons/ by its URL, Android package, or iOS bundle ID, and read it. Use its session, navigation, and wait lessons from the first command.agent-browser skill. Its SKILL.md is a stub: run agent-browser skills get core before the first command.agent-browser --session <app>-qa --restore open <url>.agent-browser set viewport 1920 1080. Read the real size with eval '[innerWidth, innerHeight]' and write it in the run description. A case with its own viewport sets it and restores the run's after.agent-browser auth login <alias> from the auth vault. Never put passwords in commands or files.eval 'performance.getEntriesByType("resource").map(e => e.name)'. Write it to build: in results.md. A run on several platforms names each build, such as staging · web 2.14.3 · android 4.12.0 (4120) · ios 4.12.0 (812).Show the plan as the message-the-qc skill lays out:
elapsed in earlier results.md files under test-runs/, else its forecast or estimate that list prints. Add the last run's setup and waiting: its run time minus the sum of its elapsed. Count the cases with no number. A run with session groups ends no earlier than its last group's window.Ask before the first case only when the run creates a TestRail run, has cases in risky scope (Step 3) that save, change, or delete data, or has an open question: an environment or account no lesson file names (item 3), changed areas (Step 1), which device (Device Session), a database connection (Data Checks), or session times domain/ does not hold (Step 1). Put every such question in this one message. Otherwise show the plan and start.
❓ Start the run?
1. ✅ Run and push the results
2. ✏️ Type changes
The approval covers the data changes the listed cases make and creating the TestRail run the plan names. After it, only steps a person must do (Step 3), the Bug drafts (Step 6), and the follow-up (Step 9) wait for the QC. The run and the push finish while the QC is away.
Runner subagents run the cases, one batch of up to 10 cases at a time, in the same named session. Each runner gets its cases, the results.md path, the run folder, the lesson file, Results Format, UI Checks, API Checks, Data Checks, Device Session for Android and iOS, and the rules below. It returns its results, lesson candidates (what was slow or broke, and the fix that worked), and user actions still needed. Runners never push to TestRail or file bugs: the main session reviews every result first.
Risky scope (money, sign-in and permissions, data hard to restore, personal data): the first batch is one happy path, one negative case, and one boundary case. Review them per Step 4 before the next batch. Fix a setup problem and rerun them; a case that needs a fix is blocked. Their results count for the run.
Security cases (the 🔐 pentest focus) run only with the run's own test accounts; a check that one account cannot reach another's data uses two of them. Never repeat failed logins or OTPs up to the lockout count, flood requests, or send input that changes data outside the run's accounts.
Parallel lanes only when each lane has its own test account, the lanes share no data, and the accounts share no OTP device. A sequence that builds on itself (create, edit, cancel) stays in one lane. The trading session is one clock for every lane: no lane runs a session group before its window, so lanes never shorten a wait for one. Each lane:
agent-browser --session <app>-qa-<n> --restore, and never shares a --profile or --state file with another lane: shared cookies are one server session, so the lanes sign each other out.<app>-qa-<os>-<n>: two lanes on one device take the screen from each other.results-<n>.md.Start with two small lanes and check that the first is still signed in before handing out the rest. The main session merges the lanes into results.md. A case with no block after the merge stays untested: name the lane that missed it and rerun the case.
Without subagents, run the batches yourself.
Per case:
observed as passed, failed, or not observed, with the value read. Status from the worst step: a failed step → failed; a step that cannot run because of a verified blocker → blocked; steps that do not match the app or have no checkable Expected → blocked with "case needs fix"; every step observed and passed → passed. A step not observed for another reason leaves the case untested with the reason.agent-browser screenshot --full <run folder>/<file>, or on a device agent-device screenshot <run folder>/<file>. Open each before the next step: readable, right state, shows the value judged.
C<id>-step<n>.png right after a step that fails, a step judged from a screenshot, or a step whose value a later step replaces.C<id>.png for the final state. Add C<id>-02.png for scrolled areas. Never zoom out or widen the viewport to fit a screenshot: it hides real overflow bugs.observed step covers every platform, such as 2 failed (web: fee 9,000; ios: no fee shown). The status comes from the worst platform. Screenshot names end in -web, -android, or -ios. run_at is the earliest verdict, and elapsed is the sum.<YYYY-MM-DD>-<slug>-<platform> and TestRail run: a later pass on one platform would hide a fail on another.passed, check every screenshot of the case per UI Checks and write the outcome in checked.run_at to the time of the verdict. Set elapsed to the case's own time, without waits for the user or reruns caused by the agent.build: on the results after the change.untested, naming the next window, such as "ATC closed before step 3; next ATC 2026-11-16 14:30".blocked, owner the user.passed the runner did not observe.While running, each runner also does the extra checks that cost little and change nothing, and writes them to probes.md:
The rest waits for the QC's pick and runs in Step 9.
After the last batch, close every session the run opened, lanes included: agent-browser --session <name> close, and on Android and iOS as Device Session says. Then check agent-browser session list and agent-device session list, and close any the run left behind, such as a lane whose runner stopped. A session where the user is still signing in or entering an OTP stays open until they finish. Never close --all: it closes other work's sessions.
The main session reviews every block once, before the push, with the ticket's context file (Ticket Folder) at hand:
failed: reopen the evidence. It must show the failing step. If it does not, rerun the case, or set it back to untested with the reason.Conflicts or Answers settles follows that entry.failed when a source (story, design, spec) fixes the text. It is "case needs fix" only when the sources leave the text open.report-bug or a question to the PO.blocked with "case needs fix". Fix the case later with improve-test-cases.Answers, with who decided and where; the accepted difference in Conflicts, with the side followed. Other QCs see only TestRail and Jira: list a comment on the story among the report's decisions, and keep the comment's link once posted.node <sync skill>/scripts/testrail.mjs results <run folder>/results.md --dry-run
node <sync skill>/scripts/testrail.mjs results <run folder>/results.md
--dry-run and fix what it reports. A case changed on TestRail after its run_at: run it again, or set its block back to untested with the reason "case changed on ".results.md and posts only what TestRail does not have yet, as Results Format describes.Every later push, after a status change, new Bug keys, or refs, goes through these steps again. A status the user changes is their go-ahead to push it.
Exit code 2 with "may have saved" means TestRail may hold the write without its ID in results.md. Check with list --run <id>, or the run list in TestRail, before pushing again. A blind rerun posts duplicates.
The user asked to run only, not push → keep the results local and say so in the report.
The user asks only to create the run → Step 1, then this step with every block untested. The run gets its cases and no results.
failed case to report-bug at once, with its result block and evidence, except a case whose defects already names the Bug that explains the failure, such as a verify-bug retest. It drafts all the Bugs, and the Step 8 report carries its one question for the batch.report-bug creates the Bugs. Add each key to its block's defects: and push the keys through Step 5 in the same turn.Update automation-lessons/<app>.md per Automation Lessons, from the runners' lesson candidates and the elapsed times:
Update data-map/<app>.md per Data Checks whenever an entry is drafted or its status changes, in Step 9 too.
Lay it out as the message-the-qc skill says:
results.md path and how many lessons were added, changed, or removed.Ask one question on what to run next, in the same message, per Follow-up Checks. The options are API probes, data checks, and a regression on related features, after any kind of run. Offer only the ones the run and the story make worth running, the riskiest first:
❓ What should run next?
1. ✅ <riskiest option>: <scope> · <why>
2. <next option>: <scope> · <why>
3. <next option>: <scope> · <why>
4. ⏭️ Nothing more
5. ✏️ Type changes: several options, or another scope
No question asked, or the QC picks nothing → no Step 9.
probes.md as it finishes.found row to report-bug as a defect found in the live app, with its evidence file. Add the Bug key to the row once filed. A data difference the QC has not confirmed waits for that answer.found, done, and skipped, and what a probe saved and reversed.references/api-checks.md (opens in a new tab)references/automation-lessons.md (opens in a new tab)references/data-checks.md (opens in a new tab)references/device-session.md (opens in a new tab)references/follow-up.md (opens in a new tab)references/results-format.md (opens in a new tab)references/ui-checks.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tinyc0der/qa-skills --plugin qa-skills14 skills in this plugin
/detect-duplicate-test-casesFind duplicate, near-duplicate, and overlapping manual test cases in TestRail or local `*.test.md` files. Identifies exact matches, semantically similar cases, subsets, and variations that differ only in data. Recommends which cases to keep, merge, or remove. Use when asked to find or clean up duplicate test cases or dedupe a TestRail section. Not for pruning cases that duplicate nothing./gather-contextGather what every source says about a Jira ticket or feature and save it to a context file (`tickets/<KEY>-<slug>/context.md`) with the sources read and not read, existing TestRail cases, conflicts between sources and the side followed, and open questions. Reads the ticket with its history, comments, sub-tasks, and linked issues, plus Confluence, Figma, TestRail, the live app, and the QA workspace. It is the first step of `review-user-story` and `qa-write-test-cases`. Use when the user asks what is known about a ticket or feature, asks to collect, refresh, or re-check its context, or asks for the sources a ticket does not link.Other plugins' skills for the same job
/improve-test-casesAnalyze and improve existing manual test cases (`*.test.md` in TestRail format, or cases pulled from TestRail) for clarity, structure, and format compliance, then push the fixes back to TestRail. Use when the user asks to improve, clean up, review, standardize, or rewrite existing test cases or a TestRail section.