AI for QA Automation with Claude Code
Get unlimited access to all learning content and premium assets Membership Pro
An agent that can edit your test suite unattended is a colleague with commit rights and no judgement. This course is about the repository you hand it.
A hundred and fifty lessons and a capstone. Twenty-eight hours and forty-seven minutes.
Who this is for
Automation engineers who have watched an agent write a plausible test and had no way to tell whether it was a good one. Leads deciding what an agent is allowed to touch. And anybody who has been told to “use AI to go faster” and would like that to mean something they can defend in a review.
It is language-agnostic. The demonstrations use whatever the lesson is about; the argument underneath works in Java, Python, TypeScript or C#.
The reason this course exists, in one number
One backslash.
Here is a guard hook — the kind almost everybody writes first. It reads the command out of the request, matches it against a list of things an agent must never run, and blocks. Give it rm -rf ~/work and it blocks it. Good.
Now send the same destructive command inside a commit message:
git commit -m "tidy" && rm -rf ~/work
It arrives with the quotes escaped. The pattern that extracts the command stops at the first escaped quote. What the guard actually inspects is:
git commit -m \
There is no rm -rf in that string. Allowed.
The same guard fails open a second way, for an unrelated reason: put a space after the colon in the request and the pattern matches nothing at all, the extracted command is empty, and everything is permitted.
Both are asserted in this repository, against the real guard and the naive one side by side, and you can run them yourself.
And its sibling, which is the same disease in the other organ: an edit hook that runs your checks and reports green because the application was unreachable and the checks never ran at all. The honest version says so in those words — lint clean, but the register checks did NOT run. This is not a pass.
That is the subject. Not whether an agent can write tests — it can — but whether the thing you built to supervise it works, and how you would know.
What you will be able to do
- Drive the tool properly: sessions, context, git, and what it is doing to your repository while you are not looking
- Write a
CLAUDE.mdthat changes behaviour instead of decorating a folder - Build custom commands and subagents for the tasks your team repeats
- Write hooks that enforce what a model is not allowed to skip — and prove they still allow the things they must not block
- Connect an agent to your tracker and your database over MCP, and know where the trust boundary is
- Generate tests from a spec, a Gherkin feature or a legacy suite, and review the output like somebody who expects to find something
- Read a failure and tell a flaky test from a real one
- Run the whole arrangement inside CI, with a budget, a blast radius and a log
What you will build
A repository an agent can work in unattended — and the proof that its guardrails can fail.
You do not pass this capstone by writing a guard. Anybody can write a guard. You pass it by demonstrating, in both directions, what yours blocks and what it still allows — because a guard that blocks everything is not a guard, it is an outage, and a false positive is a failure too.
Twelve acceptance criteria, eight settled by a script that runs your guard against payloads you have not seen, including an evasion of exactly the kind above. Four are read by a person, and those are the ones that decide it.
There is a submission in the capstone folder that meets all eight mechanical criteria and is worthless. Read it before you start. It is the most useful file in the directory.
Requirements
A computer, a terminal, and an editor. Git.
You will need access to the tool the course is about; every lesson that depends on one says so. Nothing else is bought, and no vendor account beyond that is used anywhere in the course.
The practice material runs against committed sandboxes in this repository — 45 assertions covering the configuration, the commands, the subagents, the hooks and the CI wiring, including that the naive guard still fails open and the honest one still refuses. If either ever changes, the checks fail before a lesson does.
What this course is not
It is not a prompting course. Prompt phrasing is the fastest-decaying skill in this field, and a course built on it is a course you re-record every quarter. What is taught here is the arrangement around the model: what it can reach, what it must not skip, and what you check afterwards.
It does not claim the tool writes good tests. It claims the tool writes tests quickly, that some of them are good, and that telling the two apart is now the job. Several lessons stop at exactly the point where that judgement starts and say out loud that what follows is not proved by what you just watched.
And it is not a course about replacing testers. The role it describes has more judgement in it than the one before, not less — the arithmetic moved, and the deciding did not.
How it is taught
Foundations first, because an agent’s output is unreadable without them: what testing is for, how work actually moves, git, the terminal, and how the models underneath these tools behave — including how they fail.
Then the tool itself, from first session to unattended CI run, with every claim either measured in a committed sandbox or labelled on camera as something the lesson does not prove. Then the engineering that makes it survivable: test architecture, flakiness, and pipelines.
And it ends with the arrangement in one repository, guarded, proved in both directions, and running without you watching it.
- 15 Sections
- 150 Lessons
- 10 Weeks
- IntroductionHow the course is put together, and the application you will work against.2
- 1. Foundations — QA & Test Design FoundationsWhat testing is for, and how to choose what to test. No tool, no code.14
- 2.1What quality actually means, and who owns it9 Minutes
- 2.2Manual, automated, and what automation cannot do10 Minutes
- 2.3Test levels: unit, integration, system, end-to-end11 Minutes
- 2.4The test pyramid, the testing trophy, and when each is wrong12 Minutes
- 2.5Functional vs non-functional testing9 Minutes
- 2.6Equivalence partitioning10 Minutes
- 2.7Boundary value analysis10 Minutes
- 2.8Decision tables and state transition testing12 Minutes
- 2.9Pairwise and combinatorial testing10 Minutes
- 2.10Exploratory testing and charters10 Minutes
- 2.11Risk-based test selection: what to automate first12 Minutes
- 2.12Writing a test case that survives a handover10 Minutes
- 2.13Bug reports that get fixed11 Minutes
- 2.14Entry and exit criteria, definition of done9 Minutes
- 1. Foundations — How Software Gets Built: SDLC, Agile & FlowWhere testing sits in the way work actually moves. No tool, no ceremony theatre.6
- 3.1How software gets built: waterfall, V-model, iterative11 Minutes
- 3.2Where testing sits, and why it moved left10 Minutes
- 3.3Scrum from a tester’s seat12 Minutes
- 3.4Kanban, flow, and work in progress10 Minutes
- 3.5Refinement: asking the question before the code exists11 Minutes
- 3.6When the process is the problem10 Minutes
- 1. Foundations — Git & GitHub for QAUsed by all 53 courses. Also the module that produces the student's portfolio.16
- 4.1Why version control, and what a repository is8 Minutes
- 4.2Installing Git and first-time configuration9 Minutes
- 4.3The three states: working tree, staging area, repository10 Minutes
- 4.4add, commit, log, and writing a useful commit message12 Minutes
- 4.5Ignoring files: .gitignore for test projects9 Minutes
- 4.6Branching and switching11 Minutes
- 4.7Merging, and resolving your first conflict13 Minutes
- 4.8Rebase vs merge, and when each is safe12 Minutes
- 4.9Remotes: clone, fetch, pull, push12 Minutes
- 4.10Pull requests and code review as a tester13 Minutes
- 4.11Tags and releases8 Minutes
- 4.12Undoing things: restore, reset, revert, reflog14 Minutes
- 4.13Stash, cherry-pick and interactive rebase basics12 Minutes
- 4.14Branching strategies: trunk-based vs GitFlow10 Minutes
- 4.15GitHub repo hygiene: README, structure, badges11 Minutes
- 4.16Building a QA portfolio repository that gets you hired12 Minutes
- 1. Foundations — Terminal, Shell & Linux for QAEvery course runs tests from a terminal at some point.10
- 5.1Why the terminal, and choosing your shell8 Minutes
- 5.2Navigating the filesystem10 Minutes
- 5.3Creating, copying, moving and deleting10 Minutes
- 5.4Reading files: cat, less, head, tail, tail -f10 Minutes
- 5.5grep and find: locating things in a test project12 Minutes
- 5.6Pipes, redirection and exit codes12 Minutes
- 5.7Environment variables and PATH11 Minutes
- 5.8Processes, ports, and killing a stuck test run11 Minutes
- 5.9SSH and copying files to a remote machine10 Minutes
- 5.10Writing a small shell script to run your suite12 Minutes
- 3. Core automation — LLM Foundations for QAHow the models actually behave. Prerequisite for every other X module.12
- 6.1What a large language model is doing when it answers10 Minutes
- 6.2Tokens, context windows, and why long sessions drift11 Minutes
- 6.3Temperature, sampling and non-determinism10 Minutes
- 6.4Choosing a model: capability, speed and cost trade-offs11 Minutes
- 6.5Prompting patterns that work for engineering tasks13 Minutes
- 6.6Giving context: files, specs, examples, constraints12 Minutes
- 6.7Hallucination: what it looks like in generated tests12 Minutes
- 6.8Where an LLM is reliably useful in QA, and where it is not12 Minutes
- 6.9Tool use and agents: the mental model11 Minutes
- 6.10Reviewing AI output: a tester’s checklist12 Minutes
- 6.11Data, privacy and what you must not paste into a model10 Minutes
- 6.12Cost awareness: tokens, caching, and budget discipline10 Minutes
- 3. Core automation — Claude Code Essentials for QAFrom install to a generated, passing test. The on-ramp module.14
- 7.1What Claude Code is, and how it differs from a chat window10 Minutes
- 7.2Installing Claude Code and first run10 Minutes
- 7.3The session loop: prompt, tool calls, result11 Minutes
- 7.4Permission modes and staying in control of your repo12 Minutes
- 7.5Letting it read a codebase: search, read, and summarise12 Minutes
- 7.6CLAUDE.md: teaching it your project’s conventions14 Minutes
- 7.7Your first generated test, and reviewing it properly14 Minutes
- 7.8Editing existing tests instead of regenerating them12 Minutes
- 7.9Running the suite and fixing failures in the loop13 Minutes
- 7.10Plan mode: agreeing on the approach before any edit11 Minutes
- 7.11Sessions, resuming work, and managing context11 Minutes
- 7.12Working with Git: branches, commits, pull requests12 Minutes
- 7.13Prompting for test code: patterns that actually work13 Minutes
- 7.14Failure modes: when it invents a locator or an API12 Minutes
- 3. Core automation — Claude Code AdvancedTurning the tool into a QA workflow the whole team can run.16
- 8.1Project vs user configuration, and what belongs where11 Minutes
- 8.2Writing a CLAUDE.md for a test automation repository14 Minutes
- 8.3Custom slash commands for repeated QA tasks13 Minutes
- 8.4Building a /new-test command for your framework13 Minutes
- 8.5Subagents: what they are and when they pay off12 Minutes
- 8.6A test-review subagent with its own instructions14 Minutes
- 8.7Hooks: enforcing rules the model cannot skip13 Minutes
- 8.8A hook that runs lint and tests after every edit13 Minutes
- 8.9Skills: packaging a repeatable QA procedure13 Minutes
- 8.10Headless and scripted runs for automation12 Minutes
- 8.11Running Claude Code inside CI13 Minutes
- 8.12Multi-file refactors across a large suite12 Minutes
- 8.13Context strategy for a 2,000-test repository12 Minutes
- 8.14Guardrails: what you never let an agent do unattended11 Minutes
- 8.15Team adoption: shared config in version control11 Minutes
- 8.16Measuring whether it actually made you faster11 Minutes
- 3. Core automation — MCP for QAThe protocol that connects the agent to your real systems.10
- 9.1What Model Context Protocol is and why it exists11 Minutes
- 9.2Servers, tools, resources: the vocabulary11 Minutes
- 9.3Adding your first MCP server12 Minutes
- 9.4Scoping servers: project, user, and shared config11 Minutes
- 9.5MCP servers useful to a QA engineer13 Minutes
- 9.6Connecting to a test management or issue tracker12 Minutes
- 9.7Connecting to a database for state verification12 Minutes
- 9.8Trust boundaries: prompt injection through tool output13 Minutes
- 9.9Secrets, tokens and least privilege11 Minutes
- 9.10Debugging an MCP server that will not connect10 Minutes
- 3. Core automation — AI-Assisted Test Generation & RefactoringTool-agnostic techniques. Works with Claude Code, Copilot or Cursor.12
- 10.1From requirement to test cases: prompting for coverage13 Minutes
- 10.2From an OpenAPI spec to an API test suite14 Minutes
- 10.3From a Gherkin feature to step definitions12 Minutes
- 10.4Generating test data and edge cases12 Minutes
- 10.5Converting a manual test plan into automation13 Minutes
- 10.6Refactoring a legacy suite into page objects14 Minutes
- 10.7Migrating between frameworks with an agent13 Minutes
- 10.8Adding assertions an agent proposes but a human ranks12 Minutes
- 10.9Generating unit tests for the code under test12 Minutes
- 10.10The review gate: what must never be merged unread11 Minutes
- 10.11Measuring generated-test quality, not quantity12 Minutes
- 10.12Anti-patterns: tests that assert nothing and always pass12 Minutes
- 4. Engineering practice — CI/CD Foundations + GitHub ActionsPrimary CI for the whole catalog: it produces a green badge on the student's repo.14
- 11.1Continuous integration, delivery and deployment10 Minutes
- 11.2Where automated tests sit in a pipeline10 Minutes
- 11.3GitHub Actions: workflows, jobs, steps, runners12 Minutes
- 11.4Your first workflow: run tests on push12 Minutes
- 11.5Triggers: push, pull_request, schedule, manual11 Minutes
- 11.6Caching dependencies to keep runs fast11 Minutes
- 11.7Matrix builds: browsers, versions, operating systems13 Minutes
- 11.8Secrets, environments and protected variables12 Minutes
- 11.9Publishing test reports and artifacts12 Minutes
- 11.10Failing the build correctly: exit codes and required checks11 Minutes
- 11.11Scheduled regression runs and nightly suites10 Minutes
- 11.12Reusable workflows and composite actions12 Minutes
- 11.13Self-hosted runners: when and why10 Minutes
- 11.14Reading a failed pipeline like an engineer12 Minutes
- 4. Engineering practice — Test Architecture & Design PatternsLanguage-neutral structure. The per-language implementation lives in L4.12
- 12.1What makes a test suite maintainable10 Minutes
- 12.2Separating test intent from implementation11 Minutes
- 12.3Page Object Model: the idea and its rules13 Minutes
- 12.4Page Object Model: the mistakes everyone makes12 Minutes
- 12.5Component objects and composition over inheritance12 Minutes
- 12.6The Screenplay pattern: actors, tasks, questions14 Minutes
- 12.7Fixtures and dependency injection in tests12 Minutes
- 12.8Setting up state without driving the interface12 Minutes
- 12.9Fluent APIs and readable assertions11 Minutes
- 12.10Layering: tests, flows, pages, drivers, utilities13 Minutes
- 12.11Choosing a pattern: a decision guide10 Minutes
- 12.12Refactoring a bad suite: a before-and-after14 Minutes
- 4. Engineering practice — Flakiness, Waits, Retries & ParallelismThe module that separates a suite people trust from one they ignore.10
- 13.1What flakiness costs, and why suites get abandoned10 Minutes
- 13.2Sources of flakiness: timing, state, order, environment12 Minutes
- 13.3Implicit, explicit and fluent waits — and auto-waiting13 Minutes
- 13.4Never sleep: replacing fixed delays with conditions11 Minutes
- 13.5Retries: where they help and where they hide bugs12 Minutes
- 13.6Test independence and ordering11 Minutes
- 13.7Parallel execution: threads, workers, and shared state13 Minutes
- 13.8Sharding a suite across CI machines11 Minutes
- 13.9Quarantine, tagging and flaky-test triage process12 Minutes
- 13.10Diagnosing a flaky test: a live investigation14 Minutes
- CapstoneThe project this course is marked on.2
- AssessmentA question bank covering the whole course.1
Get unlimited access to all learning content and premium assets Membership Pro
You might be interested in
Stay Updated with New Courses
Get the latest courses and learning tips delivered to your inbox.