QA AND TEST AUTOMATION
QA and Test Automation Engineering
Become a tester, an SDET or a quality engineer, step by step. Start with testing judgement (requirements, test design, exploratory testing, bug reports), add Java and automation (API and UI with Playwright, Selenium and REST Assured), then CI, performance, security, testing AI features and using AI to test. Free, and every lab tests the same practice shop.
- 112 episodes
- 35 labs
- 4 capstones
- 13 parts, beginner to staff
Also called: software testing, QA engineering, SDET, software engineer in test, test automation engineering. 107 of 112 episodes are live; more are added each week.
The practice app
ShopRung: one shop, tested at every layer
A small online shop with accounts, search, a cart, coupons, shipping rules and orders, a REST API, a read-only SQL console and written requirements with ids you can trace. Its bug switch turns on known bugs (an off-by-one coupon, a quantity limit, a shipped order that can be cancelled), so you can prove your tests fail when they should.
- Runs with Node.js 22 or newer:
npm start, no packages to install - Web UI at
localhost:8080, API under/api, SQL console at/sql POST /api/test/resetstarts every test run from the same data
Stage 1 · Foundation
Testing judgement before tools: the job, manual testing done properly, and enough code to automate.
Part 0 · Introduction and careers
What testing is for, the roles and the career ladder, and where testing fits in how software is built.
- 1What is software testingWhat software testing is and why teams pay for it, shown on one real shop rule: error, defect and failure, verification and validation, static and dynamic testing, test basis, condition and case, a test case written out and run, a bug caught with the ShopRung bug switch, and what testing can never prove.
- 2QA, QC, SDET and QEWhat quality assurance, quality control and testing each mean and how they fit together, then the people: the QA engineer, the test automation engineer, the SDET and the quality engineer. One ShopRung coupon bug seen through each role, who owns quality on a modern team, and how to read a job ad by its duties instead of its title.
- 3The QA career pathThe QA career ladder from your first testing job to staff SDET: what each level owns and the skills that move you up, the manager track and the other doors testing opens, a portfolio that proves your skill on ShopRung, where certifications fit, how AI is changing the work, and what interviews ask at each level.
- 4SDLC, Agile and DevOpsHow software is built and where testing fits at every step: the phases of the SDLC, Waterfall and the V-model with its test levels, Agile values, Scrum roles and events, a ShopRung coupon story tested inside one sprint, Kanban, DevOps and the CI/CD pipeline, shift left and right, and the DORA delivery metrics.
- 5Software testing life cycleThe six phases of the software testing life cycle, each with its entry criteria, work and deliverables: requirement analysis, test planning, test design with a traceability matrix, environment setup, execution with the defect loop, and closure. Walked through on a real ShopRung coupon rule, with the ISTQB names and how it all shrinks to fit an Agile sprint.
- 6The 7 testing principlesThe seven principles of software testing, each shown on the ShopRung shop: why a green suite is not proof, why exhaustive testing is impossible (46 billion carts), why early testing saves money, how defects cluster, why tests wear out, why context decides, and the absence-of-defects fallacy, plus the misquotes interviewers listen for.
Part 1 · Manual testing, properly
Reading requirements, designing tests with real techniques, exploring, and reporting bugs a developer can act on.
- 7Reading requirementsHow a tester reads requirements before any code exists: functional and non-functional rules, user stories and acceptance criteria in Given, When, Then form, what makes a rule testable, hunting vague words, gaps and implicit rules, asking good questions, and turning a rule into test conditions, all on real ShopRung rules.
- 8Test scenarios and casesFrom a requirement to test cases someone else can run: test conditions, scenarios, and test cases with an id, preconditions, steps, data and one exact expected result. Worked on ShopRung checkout with positive, negative and edge cases, plus traceability, prioritising, and the mistakes reviewers and interviewers look for.
- 9Equivalence partitioningHow to test a field with a handful of cases instead of thousands: split inputs into valid and invalid partitions that the software treats the same way, pick one value from each, and know when one value is not enough. Worked on ShopRung quantity, search and password rules, with partitions for outputs and for more than one field.
- 10Boundary value analysisWhy bugs cluster at the edges of ranges, and how to test them: find each boundary, test the value on it and the values just outside (two-value and three-value BVA), handle money, lengths and dates, and pair it with equivalence partitioning. Worked on ShopRung quantity, SAVE10, free shipping and search length, with the bugs each case catches.
- 11Decision table testingHow to test rules that combine: find the conditions and actions, count the rules (2 to the power of n), fill and merge the table, mark impossible rules, and turn each rule into a test case. Worked on the ShopRung coupon and free-shipping rules with real values, a JUnit 5 parameterized test, and the mistakes interviewers probe.
- 12State transition testingHow to test anything that remembers where it is: states, events, transitions and guards, drawn as a diagram and a state table, then valid transitions, invalid ones and paths through the machine. Worked on the ShopRung order life cycle (placed, paid, shipped, delivered, cancelled) with the real status codes and messages.
- 13Pairwise and error guessingTwo ways to choose tests when there are too many combinations or no written rule: pairwise (all-pairs) testing that covers every pair of values in a fraction of the runs, with constraints and tools, and error guessing and fault attacks built from experience. Worked on a ShopRung checkout matrix of 54 combinations reduced to 9.
- 14Exploratory testingExploratory testing done as a skill, not as random clicking: learning, designing and running tests at the same time, inside a time-boxed session with a charter, guided by heuristics and tours, with notes and a debrief that make it accountable. Worked on a ShopRung session in mystery mode, and how it fits next to scripted and automated tests.
- 15Types of testingThe testing vocabulary you hear every day, sorted so it makes sense: test levels (unit, integration, system, acceptance), functional and non-functional types, and testing after changes (smoke, sanity, confirmation, regression). With UAT, alpha and beta, black, white and grey box, and when a team runs each one on a ShopRung release.
- 16Bug reports and defectsHow to write a bug report a developer can act on in minutes: a precise title, environment, minimal steps, expected versus actual with the requirement id, evidence from the UI, the API and the database, then severity and priority. Plus the defect life cycle from new to closed, including rejected, duplicate, deferred and reopened, on a real ShopRung stock bug.
- 17Severity vs priorityThe difference between how bad a bug is (severity, set by the tester from impact) and how soon it must be fixed (priority, set with the business), the usual scales, and the four combinations with clear examples: high-low, low-high and the rest. Applied to real ShopRung bugs, with how triage decides and what interviewers want to hear.
- 18Test plan and strategyWhat a test strategy and a test plan are, how they differ, and what goes in each: scope, approach, environments, data, risks, entry and exit criteria, schedule and roles. Then traceability and the few test metrics that help decisions, on a one-page plan for a ShopRung release, plus how agile teams keep plans light.
- 19SQL for testersThe SQL a tester actually uses: SELECT with WHERE, ORDER BY and LIMIT, COUNT and GROUP BY, JOINs across tables, and LEFT JOIN to find what is missing, then data checks that catch bugs the screen hides. Every query runs on the ShopRung database in its read-only SQL console, with the real results, plus the SQL questions SDET interviews ask.
- 20Browser DevTools for testersThe browser developer tools a tester uses every day: the Elements panel to inspect and find locators, the Console for errors, the Network panel to see every API call with its status and body, Application storage for tokens, throttling and device mode, and Copy as cURL for bug reports. All on ShopRung, finding whether a bug lives in the page or the server.
Part 2 · Programming for testers
Enough Java to write clean automation, a little TypeScript for Playwright, Git, and the coding questions SDET interviews ask.
- 21Java for testersWhy Java is the common language of SDET work, how to set up JDK 21 and an IDE, and the basics automation code needs: types (and why money uses long cents, not double), strings, conditions, loops and methods, written as a small ShopRung pricing check you can run. With the Java questions SDET interviews start with.
- 22OOP for test automationClasses and objects, constructors, and the four pillars (encapsulation, inheritance, polymorphism, abstraction) explained through the test code you will actually write: a ShopRung page object, a base test class, the WebDriver interface, and records for test data. Plus composition over inheritance, and the OOP questions every SDET interview asks.
- 23Collections for testersThe three collections test code uses all day: List for ordered results, Set for uniqueness, Map for lookups and counts, with the right implementation of each (ArrayList, HashSet, LinkedHashSet, HashMap, TreeMap), sorting with Comparator, immutable List.of, and the traps: ConcurrentModificationException and order you should not rely on. All checked on ShopRung data.
- 24Exceptions and streamsTwo Java features test code leans on: exceptions (checked versus unchecked, try, catch and finally, try-with-resources, custom exceptions with clear messages, and why swallowing errors hides bugs) and streams with lambdas (filter, map, collect, count, sum, max, groupingBy, anyMatch and Optional), each run on ShopRung product data with the real results.
- 25Maven and JUnit 5How a Java test project is built: the Maven folder layout, pom.xml with pinned JUnit and Surefire versions, dependencies and scopes, the build life cycle (mvn test), then JUnit 5 tests with assertions, assertAll, assertThrows, lifecycle hooks, parameterized boundary tests and reading the Surefire report. Written for the ShopRung pricing rules, as in lab 4.
- 26TypeScript for PlaywrightThe TypeScript a Java tester needs to read and write Playwright tests: let and const, types and interfaces, arrow functions, template strings, === versus ==, arrays and objects, and above all async and await, because every browser action returns a promise. Ends with a first Playwright test on the ShopRung search, compared line by line with Java.
- 27Git for testersGit as a tester uses it: the working tree, staging area and commits; clone, status, diff, add and commit; branches and switching; push, pull and pull requests with review; merge conflicts and how to solve them; .gitignore for build output and secrets; and the habits of a clean test repository. With a real feature branch for a new ShopRung test.
- 28SDET coding questionsThe coding round of an SDET interview: what it scores, a method for answering out loud, and the classic questions solved in Java with their complexity: reverse words, palindrome, first unique character, anagrams, balanced brackets, second largest and a missing number. Plus the tester twist interviewers love: list your test cases before and after you code.
Stage 2 · Automation
Unit, API, UI and mobile automation, frameworks, CI, performance and security.
Part 3 · Automation fundamentals
What to automate, unit tests and test doubles, TDD, test data, and keeping a big suite fast and trustworthy.
- 29Test pyramid and trophyHow to balance a test suite: the test pyramid (many unit tests, fewer service tests, few UI tests), why it works (speed, cost, how precisely a failure points at the bug), the testing trophy and its focus on integration tests, the ice-cream cone anti-pattern, and how to pick the right layer for each ShopRung rule.
- 30What to automateHow to choose what to automate: tests that run often, check stable rules, need lots of data or precise timing, and protect high-risk features; and what to leave manual: one-off checks, fast-changing UI, usability and exploratory work. With a simple scoring model, a return-on-investment estimate, and a first automation backlog for ShopRung.
- 31Unit tests: JUnit and pytestWhat a unit test is and is not, what makes one good (fast, isolated, repeatable, self-checking, one reason to fail), and how the same tests look in JUnit 5 and pytest: assertions, expected exceptions, parameterized boundaries, fixtures and setup, and reading failures. Worked on the ShopRung discount rule, with the real pytest output when the rounding bug is planted.
- 32Mocks, stubs and fakesHow to test code that depends on slow, costly or unpredictable things (a payment gateway, an email service, the clock): the five test doubles (dummy, stub, spy, mock, fake), state versus interaction testing, Mockito and unittest.mock side by side, injecting a clock for expiry rules, and the over-mocking trap. Python examples run with their real results.
- 33Test-driven developmentTest-driven development step by step: write a failing test (red), write just enough code to pass (green), then clean up (refactor), in tiny cycles. Built live on ShopRung's free-shipping rule in pytest, with triangulation, what TDD is good and bad at, how ATDD and BDD extend it, and what testers bring to a TDD team.
- 34Test dataWhy test data decides whether automation is reliable, and how to manage it: known seed data and resets, creating data per test through the API, unique values so parallel tests never collide, builders and factories for readable setup, synthetic data with Faker, and the privacy rules for production copies. With ShopRung's reset endpoint and a Java test data builder.
- 35Flaky testsWhat a flaky test is and why it is so costly, the usual causes (fixed waits, shared data, test order, time and randomness, unstable environments and external services, leaked state), how to prove and diagnose a flake by repeating runs and reading traces, and how to fix it, quarantine it and track flake rates. Worked on ShopRung's slow-search bug and a shared-stock collision.
- 36Reliability at scaleKeeping a suite of thousands of tests fast and trustworthy: isolation by default, parallel workers and sharding, shuffled order to expose hidden dependencies, locks for the few shared resources, isolated retries, flake dashboards and quarantine workflows, and why flaky tests cluster around a shared cause. With the 2026 options in Playwright, JUnit and pytest.
- 37Coverage and mutationWhat code coverage measures (lines, branches, conditions) and what it cannot tell you, then mutation testing, which plants small bugs and checks your tests catch them. Worked on ShopRung's shipping rule: 100% line coverage with a weak suite, the surviving >= to > mutant, the boundary test that kills it, and tools (JaCoCo, coverage.py, PIT, mutmut, Stryker).
Part 4 · API testing
HTTP and REST from a tester's side, then Postman, REST Assured, pytest, mocking, contracts and GraphQL.
- 38HTTP and REST for testersEverything a tester needs to read and test an HTTP API: requests and responses, methods (GET, POST, PUT, PATCH, DELETE), safe and idempotent, status codes and what each family means, headers, JSON bodies, REST resources and URLs, and what to check in every API test. All shown with real requests to the ShopRung API and its real responses.
- 39API authenticationAuthentication and authorisation from a tester's side: API keys, basic auth, session cookies, bearer tokens and JWTs (decoded, with real ShopRung claims), OAuth 2.0 flows (authorization code with PKCE, client credentials), and the test cases every protected API needs: missing, tampered and expired tokens, wrong roles, and other users' data.
- 40Postman and NewmanAPI testing with Postman, then running the same collection anywhere with Newman: collections and folders, environments and variables, saving a login token in a test script, pm.test assertions, data-driven runs from a CSV of boundary values, and Newman in CI with JUnit reports. Run for real against ShopRung: 4 iterations, 12 requests, 8 assertions passed.
- 41REST AssuredAPI tests in Java with REST Assured and JUnit 5: the given / when / then style, request specifications for the base URL and auth, extracting a login token, checking bodies with JSON paths and Hamcrest matchers, POJOs with Jackson for requests and responses, logging only on failure, and a ShopRung coupon test that checks the real $49.99 total.
- 42API tests with pytestAn API test suite in Python with pytest and httpx (requests works the same way): a client fixture with the base URL from an environment variable, a reset fixture, a logged-in user fixture, parametrized boundary tests, plain assert messages, markers and parallel runs. Run for real against ShopRung: 6 passed, and the quantity-limit bug caught with a clear failure.
- 43Schema validationChecking the shape of every API response at once with JSON Schema: types, required fields, ranges, patterns and enums, a real schema for ShopRung's cart validated with Python's jsonschema and in Java, the clear error a type change produces, additionalProperties trade-offs, and schemas from an OpenAPI spec.
- 44Mocking with WireMockTesting code that depends on other APIs you do not control: what service virtualisation is, WireMock stubs in JSON and in Java, request matching, verifying what was sent, simulating declines, delays and connection faults, stateful scenarios, the Python equivalent with respx (run for real: 3 passed), and the risk of mocks drifting from reality.
- 45Contract testingConsumer-driven contract testing with Pact, run for real: ShopRung's web page is the consumer and its API the provider. The consumer test writes a pact file against a Pact mock, the provider verifies it against the real API, and a missing field fails with an exact diff. Matchers, provider states, the Java (Pact JVM) version, the Pact Broker and can-i-deploy.
- 46GraphQL and SOAPTwo API styles beyond REST that testers still meet: GraphQL (one endpoint, queries and mutations, errors inside a 200 response, variables, query depth and cost, introspection) and SOAP (XML envelopes, WSDL contracts, faults, XPath assertions), with how to test each from Postman, REST Assured and Python. ShopRung is REST only, so the examples are generic and labelled as such.
- 47Checking the databaseUsing SQL to check what an API really did: when to look in the database, read-only access, ShopRung's tables and SQL console, a real pytest check that placing an order reduces stock (it catches the stock-not-reduced bug that the API response hides), JDBC in Java, SQL queries testers use, data integrity checks and the risks of coupling tests to the schema.
Part 5 · UI web automation
Locators and waits, Playwright as the main tool, Selenium 4 in Java, page objects, mocking, visual and accessibility checks.
- 48DOM and locatorsHow UI tests find elements: the DOM, accessible roles and names, test ids, CSS selectors and XPath, with a priority order that keeps tests stable. Every locator was run on ShopRung's real page, including a surprise: a button that says "Add to cart" is named "Add Green Build Mug to cart", so a role locator by its visible text finds nothing.
- 49Waits and synchronizationWhy UI tests race the page, and how to wait correctly: fixed sleeps, Selenium implicit and explicit waits with ExpectedConditions, fluent waits, and Playwright auto-waiting and web-first assertions. Shown for real on ShopRung with its slow-search bug: an immediate read returned the old "12 products", while a web-first assertion waited about 2.9 seconds and passed.
- 50Playwright basicsA first end-to-end suite with Playwright Test in TypeScript against ShopRung: installing, the config file with baseURL, test and expect, locators and web-first assertions, resetting data through the request fixture, running headed, filtered and in UI mode, and the HTML report. Three real tests (search, out of stock, log in and add to cart) passed in 1.7 s. Java and Python versions shown too.
- 51Trace viewer and codegenDebugging and recording tools in Playwright: a real failing ShopRung test (search-case bug: expected "2 products", received "0 products"), what the error, call log and error-context file say, the trace viewer timeline with DOM snapshots and network calls (including GET /api/products?q=mug), trace settings for CI, the inspector and pause, and codegen for recording a first draft of a test, with its limits.
- 52Selenium 4 with JavaSelenium WebDriver 4 in Java with JUnit 5, written for ShopRung: how WebDriver works, Selenium Manager for drivers, starting Chrome headless, By locators, findElement versus findElements, explicit waits, a login and add-to-cart test, Actions, JavaScript and screenshots, relative locators, and what WebDriver BiDi adds. The same flow in Python is included.
- 53Selenium vs PlaywrightA fair comparison of the three main web UI automation tools: how each one talks to the browser, languages, browsers, waiting, parallel runs, multi-tab and cross-origin support, debugging, mobile and ecosystem, then how to choose for a new project, when to keep an existing suite, and how to answer the comparison question in interviews without tool wars.
- 54Page Object ModelThe Page Object Model for UI tests: one class per page or component that owns locators and user actions, so tests read like behaviour and UI changes are fixed in one place. A real ShopRung ProductsPage in Playwright TypeScript (run for real: passed), the Java Selenium version, where assertions belong, components, and the limits: god objects, deep inheritance, and when helpers or the screenplay pattern fit better.
- 55Fixtures and login stateRemoving repeated setup from UI tests: custom Playwright fixtures (an automatic data reset and a ready ProductsPage), and logging in once with a setup project that saves storageState, which for ShopRung holds the token in localStorage. Run for real: 2 passed in 2.0 s. Also per-role states, API logins, keeping state files out of Git, and the Selenium and pytest equivalents.
- 56Network mockingControlling what the API returns to the browser so UI states are easy to test: Playwright page.route to fulfil, modify or abort requests, run for real on ShopRung (empty results, a 500 with its message, a 120-character product name, and an offline error that showed the raw text "Failed to fetch"), plus HAR replay, Cypress intercept and Selenium BiDi, and when not to mock.
- 57Parallel and cross-browserRunning UI suites faster and wider: Playwright workers, fullyParallel and sharding across CI machines, the shared-data trap shown for real on ShopRung (one shared user and 4 workers: 6 of 6 failed with counts of 4 and 6; a fresh user per test: 6 passed), browser and device projects, what cross-browser testing should cover, and Selenium Grid 4 with RemoteWebDriver and Docker.
- 58Visual regressionCatching changes you can see but rarely assert: screenshot comparison with Playwright toHaveScreenshot, run for real on ShopRung. The first run writes a baseline, the second passes, and a price changed from $24.99 to $249.90 fails with a diff of only 99 pixels, about 0.01% of the image, which shows why loose thresholds are dangerous. Masks, stable environments, baseline updates and hosted tools.
- 59Accessibility testingTesting that everyone can use the product: WCAG and its principles, automated axe scans in Playwright, run for real on ShopRung (login and product pages clean; the home page flagged 12 serious "label-content-name-mismatch" issues on its Add to cart buttons), ARIA snapshots of the header, keyboard checks, what automation cannot find, and manual screen reader testing.
- 60Passkeys and loginsTesting sign-in thoroughly: password login cases checked on ShopRung (same message for unknown email and wrong password, case-insensitive email, length rules, and no lockout after 8 failed attempts), MFA and one-time codes, and passkeys with WebAuthn, automated with a virtual authenticator in Playwright on a small demo page: register, sign in, and a failed sign-in when user verification is off.
- 61Files, frames and tabsThe awkward parts of UI automation, run for real: a new tab from ShopRung's "SQL console" footer link, then on a small demo page a file upload with setInputFiles, a CSV download saved and read back, and a payment form inside an iframe with frameLocator. Plus Selenium equivalents (sendKeys on file inputs, window handles, switchTo().frame), dialogs, and shadow DOM.
Part 6 · Mobile automation
Appium 2 on emulators and real devices, mobile locators and gestures, hybrid apps and mobile-only cases.
- 62How mobile testing differsSoon
- 63Appium 2 basicsSoon
- 64Locators and gesturesSoon
- 65Hybrid apps and WebViewsSoon
- 66Device farmsSoon
Hands-on labs
- Lab 19Appium on AndroidComing soon
- Lab 20A hybrid WebView testComing soon
Part 7 · BDD and framework design
Gherkin and Cucumber, when BDD helps, and how to design an automation framework other people can use.
- 67BDD and GherkinBehaviour-driven development from a tester's side: the three amigos and example mapping, Gherkin's Feature, Scenario, Given, When and Then, Background, Scenario Outline with Examples, and how step definitions connect plain sentences to code. A real ShopRung coupon feature run with Cucumber: 4 scenarios, 21 steps passed, and the coupon bug caught on its boundary.
- 68Cucumber with JavaCucumber JVM with JUnit 5: the Maven setup with the Cucumber BOM, a runner class for the JUnit Platform, step definitions with Cucumber expressions, sharing state between steps with PicoContainer, hooks with tags and screenshots, data tables, tag expressions for smoke runs, parallel execution and reports, all built around the ShopRung coupon feature.
- 69Framework architectureHow a test automation framework is organised so other people can use it: the layers (tests, flows, page objects and API clients, core services, configuration), what belongs in each, a project layout for ShopRung, configuration per environment and secrets, test data builders, and the rules that keep a framework small, readable and fast.
- 70Design patterns for testsThe design patterns that keep test frameworks clean, each with a ShopRung example in Java: factory for drivers, builder for test data, fluent interfaces, facade for flows, strategy for environments and browsers, the singleton and why to be careful with it, decorators and listeners for logging, and when the screenplay pattern fits. Plus the SOLID ideas behind them.
- 71Reporting and loggingMaking failures explain themselves: what a good test report shows, Allure with steps, labels, severity and attachments (run for real on ShopRung with pytest: the failing SAVE10 test shows which step failed and the API response), Allure in Java with JUnit 5, test logs with levels and request ids, secrets kept out, report history and trends in CI.
- 72TestNG vs JUnit 5The two Java test runners SDETs meet, side by side with ShopRung examples: lifecycle annotations, data providers versus parameterized tests, groups versus tags, testng.xml suites versus JUnit Platform suites, soft asserts versus assertAll, listeners versus extensions, dependencies between tests, parallel runs, and how to choose (or work in a codebase that already chose).
Part 8 · CI/CD and test infrastructure
Running tests on every change: pipelines, Docker, environments, sharding, quality gates and testing in production.
- 73CI/CD for testersWhat continuous integration and delivery mean for testers: the stages of a pipeline, which tests run where (unit, API, UI smoke, end to end, non-functional), feedback time budgets, test environments, artifacts and reports, what happens when a test fails, and the tester's job in keeping the pipeline fast and trustworthy, with ShopRung as the example.
- 74GitHub ActionsA GitHub Actions workflow for ShopRung's tests, line by line: triggers for pull requests, main, nightly and manual runs, jobs and steps, starting the app inside the job and waiting for its health check, caching, an API job and a UI job with a browser matrix, secrets, artifacts kept on failure, and protecting the main branch with required checks. The workflow passes actionlint.
- 75JenkinsJenkins from a tester's side: controllers and agents, a declarative Jenkinsfile for ShopRung's suites with stages, parallel branches, parameters, a nightly trigger, credentials and post actions that publish JUnit results and keep artifacts, plus the plugins testers use (JUnit, HTML Publisher, Allure), reading a failed build, and how Jenkins compares with GitHub Actions.
- 76Docker for testersWhy testers use Docker: the same environment on every laptop and CI agent. Images, containers, ports, volumes and environment variables, using ShopRung's own Dockerfile and compose file, a compose setup that waits for a health check and runs the tests in the official Playwright image, Selenium Grid in containers, Testcontainers for throwaway databases, and common Docker mistakes.
- 77Parallel and sharded runsMaking big suites finish in minutes: workers on one machine versus shards across machines, Playwright --shard with blob reports merged into one report, pytest-xdist and JUnit 5 parallel execution, and the real cost of shared state. Run for real on ShopRung: pytest -n 4 failed 2 to 5 of 23 tests because of a shared reset, and one ShopRung per worker fixed it.
- 78Quality gatesQuality gates are the automatic rules a change must pass before it merges or ships: tests green, coverage on new code, static analysis, security and dependency scans, performance budgets, and a review. How to choose gates that catch real risk without blocking the team, what shift left and shift right mean in practice, and the tester's role in each, with ShopRung examples.
- 79Testing in productionTesting safely where real users are: feature flags and how to test both sides of a flag, canary and blue-green releases with automatic rollback, synthetic monitors that run a read-only journey every few minutes, smoke tests after each deploy, observability for testers (logs, metrics, traces, error tracking), and the rules that keep production testing safe, with ShopRung examples.
Part 9 · Non-functional testing
Performance with k6, JMeter and Locust, security basics, data testing and chaos.
- 80Performance testing basicsWhat performance testing answers and how to plan it: load, stress, spike, soak, scalability and capacity tests, a workload model built from real traffic, think time, test environments and load generators, and the measured shape of a stress test on ShopRung with Locust, where throughput levels off while response times keep rising.
- 81Performance metricsReading performance results correctly: response time percentiles (p50, p95, p99) and why averages hide slow users, throughput, error rate, concurrency and Little's law (checked against a real Locust run on ShopRung), server-side metrics like CPU, memory and saturation, turning numbers into goals (SLIs and SLOs), and comparing runs against a baseline.
- 82Load testing with k6A k6 load test for ShopRung written step by step in JavaScript: virtual users and iterations, stages for ramping, checks on status and body, logging in once in setup, scenarios with arrival-rate executors for spike and steady load, thresholds that fail the run on p95 and error rate, tags and groups, reading the summary, and running k6 in CI.
- 83JMeter and LocustTwo more load tools you will meet: Apache JMeter, with test plans, thread groups, samplers, config elements, correlation with extractors, assertions, listeners and non-GUI runs, and Locust, where users are Python classes. A Locust run on ShopRung where each user signs up its own account, and a gate that failed the run when ShopRung's slow-search bug pushed search from 2 ms to 2.5 s.
- 84Security testing basicsSecurity testing a tester can do every day: the OWASP Top 10 in tester's terms, access control checks that caught ShopRung's order-leak bug (Bob reading Alice's order), authentication tests (no lockout after 10 wrong passwords, but no user enumeration), injection probes, security headers, SAST, dependency scans and DAST with OWASP ZAP, and the rules for testing safely and legally.
- 85Web performanceFront-end performance from a tester's side: Core Web Vitals (LCP, INP, CLS) and their thresholds, lab data versus field data, Lighthouse run three times on ShopRung (mobile score 97 every time, but CLS 0.107, just over the limit, because the footer jumps as products render), the same shift caught by a Playwright test at phone width, DevTools throttling, and performance budgets in CI.
- 86Data testingTesting data, not screens: what ETL pipelines do, source-to-target mapping, and the checks that matter (row counts, sum reconciliation, completeness, uniqueness, nulls, referential integrity, business rules, freshness), written as SQL against ShopRung's database, where a stock reconciliation caught the stock-not-reduced bug and an orphan check caught a row the database accepted because it declares no foreign keys.
- 87Chaos testingChaos testing as experiments: a steady-state hypothesis, injected faults (killed processes, latency, failed dependencies, full disks), a small blast radius and abort conditions. A real experiment that stopped ShopRung for 5 seconds under Locust load: 50 of 350 requests failed, carts and sessions survived the restart, and a first run under-reported errors because the test's own check crashed, plus tools and game days.
Stage 3 · Advanced
Testing AI features, using AI to test, and leading quality as a senior or staff engineer.
Part 10 · Testing AI features
How to test software whose answers change: evals, judges, RAG, agents step by step, MCP servers and red teaming.
- 88Why AI is hard to testWhy a chatbot breaks the usual expected-equals-actual test, shown with ShopRung's support chat on a real local model: three different answers to one question, an occasional invented answer, and the parts that stay deterministic. How testers split an AI feature into testable layers, check properties instead of exact text, repeat runs and measure pass rates.
- 89Golden sets and evalsHow testers measure answer quality: a golden set of questions with required facts, forbidden content and expected sources, run several times against ShopRung's chat on a real local model. The real result: 32 of 36 answers passed, one question failed every time because retrieval missed, and two misleading answers passed keyword checks, which is why evals need more than keywords.
- 90LLM as a judgeUsing a language model to grade answers, measured against human labels on 52 real answers from ShopRung's chat: a naive judge agreed 31 times (kappa 0.28), a calibrated one with a rubric and reference facts 40 times (kappa 0.52), yet it still passed 2 of 9 answers pushing a fake coupon. How to build the human-labelled set, measure agreement, read the judge's mistakes and combine it with deterministic checks.
- 91Testing RAGTesting retrieval-augmented generation in two halves, on ShopRung's support chat: retrieval (recall@3 10 of 11, MRR 0.91, precision 0.38, and a synonym fix measured from 0.86 to 0.91) and generation (faithfulness to the retrieved text, citations, and the trap where an answer is faithful to a poisoned page), plus what a bigger context did to cost.
- 92Testing AI agentsAgents decide which tools to call. Testing ShopRung's chat and its get_order tool on a real local model: assert on the trace, not just the answer. Real findings: malformed tool arguments in 1 of 3 runs, an answer that claimed "delivered" for a SHIPPED order, internal tool names shown to customers, a follow-up question that lost its order, and access control that held only because it lives in the tool code.
- 93Testing MCP serversAn MCP server gives AI agents tools, so it needs the same tests as an API plus a few of its own. A small ShopRung MCP server tested with pytest and the official Python SDK: 14 tests covering the tool list and schemas, results, tool errors, a second user, a real stdio process and a schema snapshot. They caught ShopRung bugs and a loosened limit; also how WebMCP tools in a web page are tested.
- 94Prompt injectionAttacking ShopRung's support chat on a real local model: an indirect injection planted in a shoppers' tips page (0 of 30 with defences on, up to 10 of 10 with them off, and a blunt first version that never worked), direct attempts to leak the system prompt (a canary check blocked 9 of 10, a paraphrase slipped through), the OWASP Top 10 for LLM apps, and how to turn attacks into a repeatable red-team suite.
- 95Guardrails and regressionsGuardrails are code around the model, so they get exact tests: ShopRung's refusal, canary and coupon allowlist on real answers, and what the allowlist cannot catch. Then a real prompt regression: a deterministic fake model in CI fell from 10 to 6 of 12 golden checks, while on the real model keyword checks stayed at 9 of 9 and only human labels and side metrics showed the change.
- 96Cost and latency checksEvery AI answer costs tokens and time, and a prompt or context change can multiply both without failing a single functional test. Measured on ShopRung's chat: about 330 tokens per answer, 2.6 times that for order questions, p95 1.4 s with a 3.9 s cold start, and tokens wasted on blocked answers. Then token and latency budget tests in CI, which caught a context bloat bug, a lost refusal and a slow chat.
Part 11 · AI tools for testers
Using AI to plan, write, run and fix tests, with the review habits that keep it honest.
- 97Prompting for testersWhat a prompt changes when you ask AI for test cases, measured on a local model (llama3.2:3b) with ShopRung's coupon and shipping rules, three runs per prompt: a vague prompt invented features, a structured one covered every rule but made confident mistakes, and a worked example brought exact boundary values with wrong expected results. How to prompt, and how to review what comes back.
- 98AI pair programmingUsing an AI assistant to write test code: when to ask, plan or let it act, what context it needs, and how to work through its output. Measured: a local model (llama3.2:3b) wrote six pytest files for ShopRung's cart rules. None ran as written; after three small fixes the best one had 4 passing and 5 failing tests, each failure a wrong expectation or an invented endpoint.
- 99Coding agentsA coding agent reads your test repo, runs commands and edits files. How to set one up for QA work: a rules file, Playwright's agent skills, playwright-cli and the trace command line (all run for real on Playwright 1.63 against ShopRung), the permissions to grant, and a review checklist. Plus a finding: a trace file held the test password and a login token in plain text.
- 100Playwright test agentsWhat npx playwright init-agents really sets up (checked on Playwright 1.63): a planner, a generator and a healer, a seed test and a test MCP server with 89 tools. How each agent works, what its instructions tell it to do, and why the healer needs a review gate: on ShopRung, two red tests had two different causes, one of them a real product bug the healer is told to make pass.
- 101Browser automation with MCPPlaywright MCP lets an AI agent drive a real browser through tools, reading the page as an accessibility snapshot with refs. A real session on ShopRung with Playwright 1.63: 24 tools costing about 5,000 tokens to describe, snapshots of 1,800 to 6,300 characters, refs that change, a renamed argument, a password that leaked into the snapshot until --secrets hid it, and turning the session into a test that passes.
- 102Self-healing and triageSelf-healing tests and AI failure triage promise less maintenance, and both can hide bugs. Measured on ShopRung: a renamed id broke a CSS locator while a role locator kept working, updating a snapshot during a bug turned the bug into the baseline, and a local model sorted 12 real failure logs correctly only 8 times, with or without a careful prompt, calling a product bug an environment problem.
- 103Testing AI-written codeMore code is written with AI, so testers need gates that do not trust it. Measured on ShopRung: AI-written cart tests, once they ran, passed 4 tests that caught none of 10 planted bugs, while two hand-written boundary tests caught the quantity bug. The gates that work: see every new test fail once, grade tests with planted bugs or mutation testing, and review against the requirement.
- 104Local modelsWhen test data, logs or code cannot leave your machine, run the model locally. Measured on a 16 GB Apple M5 laptop with Ollama: llama3.2:3b is a 2 GB download, used 7.5 GB of memory with its 32,768-token context, answered at 33 to 37 tokens a second, and took 1.4 s longer on a cold start. What local models are good enough for, and how to mask secrets before anything reaches a cloud model.
- 105The trapsThe traps of using AI in testing, each one measured earlier in this course on ShopRung: plausible but wrong expected values, green tests that caught 0 of 10 bugs, keyword checks that passed bad answers, an unmeasured judge, a healed snapshot that made a bug the baseline, triage that called a bug "environment", secrets in snapshots and traces, and single runs. For each, the habit that fixes it.
Part 12 · Leading quality (senior and staff)
Strategy for a product and an org, risk, metrics, release readiness, platforms and the standards that apply.
- 106Test strategy for a productA test strategy decides what to test, at which level, where it runs and how you know it works. Built for ShopRung from the suites in this course, then checked with evidence: all of ShopRung's 17 planted bugs, one at a time, against five suites. 14 were caught by at least one, the UI suite found a bug the API suite missed, and 3 were caught by nothing.
- 107Risk-based testingRisk-based testing spends test effort where failure would hurt most. A risk register for ShopRung, scored likelihood times impact, compared with what its suites really cover: the account area had 6 API tests yet none on sign-up, so a broken name rule slipped through. Then the two highest-value missing tests, written and proven against their planted bugs, and risk-based selection for a pricing change.
- 108Quality metricsThe few metrics that show whether testing works, and the ones that mislead. Measured on ShopRung's suites: a planted-bug detection rate of 14 of 17, zero flaky results in 530 repeated test runs (yet up to 5 failures of 23 once tests ran in parallel), feedback in about 7 seconds. Plus defect escape rate and the four DORA metrics, how to compute them, and how teams game numbers.
- 109Release readinessHow a senior tester prepares a go/no-go decision: exit criteria agreed before testing, evidence instead of opinions, severity tied to requirements, and a one-page readiness report. Practised on a ShopRung release candidate with five hidden bugs (mystery mode): the API suite failed 5 of 23 tests, the UI suite 1 of 7, the AI suites stayed green, and the evidence pointed to a clear no-go.
- 110A test platformAt staff level, a tester's biggest lever is a platform that makes good testing the easy path for every team. What it contains, shown with the testability features ShopRung already has (reset, seed accounts, a bug switch, a fake AI model) and a one-command runner: 72 tests in 8.7 seconds, 14.5 when failures add their timeouts. Plus adoption, ownership, and the security rule for test endpoints.
- 111Coaching and incidentsTwo ways senior testers multiply quality: coaching developers to test well, and running blameless incident reviews that turn an escaped bug into lasting fixes. Worked through a real escape: ShopRung's chat answered an off-topic question it should refuse, because words from a planted line still steered its search. The timeline, five whys, the guarding test, and coaching habits that catch it.
- 112Standards and rulesThe standards and rules a senior tester needs for AI features: ISTQB CT-AI v2.0 (April 2026) for testing AI systems, CT-GenAI for testing with generative AI, the EU AI Act timeline after the 2026 Digital Omnibus (high-risk rules from 2 Dec 2027), NIST AI RMF, ISO/IEC 42001 and the OWASP LLM Top 10. Each mapped to evidence ShopRung's chat suites already produce, plus one transparency gap.
Questions
Is this software testing course free?
Yes. Every episode, lab and the practice app are free. You need a laptop with Java 21 and Node.js; everything runs locally.
Do I need to know programming to start?
No. Parts 0 and 1 teach testing without code: requirements, test design techniques, exploratory testing and bug reports. Part 2 then teaches the Java, TypeScript and Git a tester needs before automation.
Which tools does it teach?
Playwright as the main UI tool, Selenium 4 with Java, REST Assured, Postman and pytest for APIs, JUnit 5 and TestNG, Cucumber, GitHub Actions and Docker, k6 and JMeter for performance, OWASP ZAP for security, and AI tools such as Playwright MCP and test agents.
What is ShopRung?
A small online shop we built to be tested. Every lab tests it: its requirements, web pages, REST API and database. It has a bug switch that turns on known bugs, so you can check that your tests really catch them.
Will it prepare me for SDET interviews?
Yes. Every episode ends with interview questions and answers, and the track ends with a question bank by level (SDET-1 to staff) and company-wise SDET interview pages.
Keep going
SDET interviews also ask coding problems and, for senior roles, system design. Practise both here.