QA AND TEST AUTOMATION · LABS
Hands-on testing labs
35 labs that all test the same practice shop, ShopRung, from writing your first test cases to automating its API and web pages and testing its AI support chat. Each lab has every step, the result you should see, help when you are stuck, and the files to download. Java first, with Python where it helps.
Start with lab 1: Test cases for a checkout →Download ShopRung
Part 1
Manual testing, properly
- Lab 1Beginner✓ Done Test cases for a checkout Set up ShopRung, read its checkout rules, find the partitions and boundaries, pick carts that land exactly on $50.00 and $75.00 with real prices,… ShopRungNode.js 22.13+A web browsercurl or PowerShell 60 min7 steps
- Lab 2Beginner✓ Done An exploratory testing session Run a real 60-minute exploratory session on a shop with hidden bugs. Write a charter, test with four heuristics (boundaries, state changes, two… ShopRungChrome or Firefox DevToolsSQL consoleMarkdown worksheets 75 min8 steps
- Lab 3Beginner✓ Done A bug report with evidence Reproduce a real ShopRung bug, capture the request and response in the DevTools Network tab, prove it in the database with SQL, narrow it to a… ShopRungChrome DevTools Network tabSQL consolecurl 60 min9 steps
Part 2
Programming for testers
- Lab 4Beginner✓ Done Your first Java test project Install JDK 21 and Maven, build a test project from an empty folder, code ShopRung's coupon and shipping rules in cents, cover every boundary with… Java 21Maven 3.9JUnit 5.11java.net.http.HttpClient 75 min8 steps
- Lab 5Beginner✓ Done Git and a pull request Put your test project under Git, write a .gitignore for Maven and Python, push it to GitHub, add a new ShopRung API test on a branch, open a pull… Git 2.4xGitHubGitHub CLIThe lab 4 test project 50 min8 steps
Part 3
Automation fundamentals
- Lab 6Intermediate✓ Done Unit tests and mocks Unit-test ShopRung's checkout logic without a payment provider, a database or the real date: a Mockito mock (or unittest.mock) for payments, an… Java 21MavenJUnit 5.11Mockito 5.14 60 min7 steps
- Lab 7Intermediate✓ Done Find and fix a flaky test Take a ShopRung test suite that passes every time in its usual order, shuffle it and watch it fail, measure how often it fails, reproduce one… Java 21MavenJUnit 5.11Python 3.12 45 min7 steps
- Lab 8Intermediate✓ Done Mutation testing Measure how good tests really are: run mutation testing on ShopRung's pricing rules. Tests with 89% line coverage kill only 45 of 71 mutants; read… Java 21MavenJUnit 5.11PIT 1.17 50 min7 steps
Part 4
API testing
- Lab 9Beginner✓ Done Postman and Newman Build a Postman collection for ShopRung step by step: an environment with variables, a login that saves its token, chained requests through cart… PostmanNewman 6.2Node.js 22ShopRung 60 min8 steps
- Lab 10Intermediate✓ Done A REST Assured suite Build the Java API suite SDET teams build: Maven, JUnit 5 and REST Assured, a shared request spec, a login helper per user, given/when/then… Java 21Maven 3.9JUnit 5.11REST Assured 5.5 75 min8 steps
- Lab 11Intermediate✓ Done An API suite with pytest Build a real API test suite in Python: fixtures for a client and one login per user, boundary tests with parametrize, orders and permissions, a… Python 3.12pytest 8.3httpx 0.28jsonschema 4.23 60 min8 steps
- Lab 12Advanced✓ Done A contract test Write a consumer-driven contract between ShopRung's web shop and its API with Pact: a consumer test against a Pact mock that writes the pact file,… Java 21MavenPact JVM 4.6Jackson 60 min7 steps
Part 5
UI web automation
- Lab 13Intermediate✓ Done Playwright end to end Build a Playwright suite in TypeScript from an empty folder: config, role locators, page objects, custom fixtures, logging in once with… Node.js 22Playwright Test 1.63TypeScriptChromium 75 min8 steps
- Lab 14Intermediate✓ Done Playwright Python with pytest Write ShopRung UI tests in Python with Playwright and the pytest plugin: the page fixture, role and label locators, expect, page objects, a reset… Python 3.12playwright 1.63pytest-playwright 0.10pytest 8.3 60 min7 steps
- Lab 15Intermediate✓ Done Selenium Java with page objects Build a Selenium 4 suite in Java the way SDET teams do: a base test with a fresh headless Chrome per test and a screenshot on failure, three page… Java 21Maven 3.9JUnit 5.11Selenium 4.27 75 min7 steps
- Lab 16Intermediate✓ Done Network mocking Make ShopRung's API say anything and check the UI copes: an empty catalogue, a server error, a 111-character product name, going offline and a… Node.js 22Playwright Test 1.63TypeScriptShopRung 45 min6 steps
- Lab 17Intermediate✓ Done Visual regression Add screenshot tests to ShopRung: a strict config, a page, a card, the header and a phone layout. Create baselines, prove they are stable, catch a… Node.js 22Playwright Test 1.63TypeScriptShopRung 40 min6 steps
- Lab 18Intermediate✓ Done Accessibility checks Automate accessibility checks on ShopRung with Playwright: axe scans against WCAG A and AA, a real finding on the home page handled the way teams… Node.js 22Playwright Test 1.63@axe-core/playwright 4.14TypeScript 45 min6 steps
Part 6
Mobile automation
- Lab 19Coming soonAppium on Android
- Lab 20Coming soonA hybrid WebView test
Part 7
BDD and framework design
- Lab 21Intermediate✓ Done Cucumber on checkout Write Gherkin for ShopRung's coupon and shipping rules and automate it: Cucumber JVM with JUnit 5 in Java, or behave in Python. Feature files,… Java 21MavenCucumber 7.20JUnit 5.11 75 min8 steps
- Lab 22Intermediate✓ Done Layers and Allure reports Turn loose tests into a small framework for ShopRung's API: a config layer, a client where every call is an Allure step with the request and… Java 21MavenJUnit 5.11Allure 2.29 75 min8 steps
Part 8
CI/CD and test infrastructure
- Lab 23Intermediate✓ Done Suites in GitHub Actions Put ShopRung, the pytest API suite and the Playwright UI suite in one repository, then build a GitHub Actions workflow step by step: start the… GitHub ActionsactionlintShopRungpytest API suite 90 min6 steps
- Lab 24Intermediate✓ Done Tests inside Docker Run ShopRung, the pytest API suite and the Playwright suite in containers with Docker Compose: a health-checked app, test containers that reach it… Docker Desktop or Docker EngineDocker Compose v2python:3.12-slimmcr.microsoft.com/playwright:v1.63.0-noble 60 min6 steps
- Lab 25Intermediate✓ Done Sharding and reports Split ShopRung's Playwright suite across 3 machines and merge the results into one HTML report: why sharding by file left one shard empty,… Playwright Test 1.63TypeScriptGitHub ActionsShopRung 60 min6 steps
Part 9
Non-functional testing
- Lab 26Intermediate✓ Done A k6 load test Write a k6 load test for ShopRung step by step: checks on every response, a steady arrival rate of browsers, buyers who sign up once and place… k6 2.4JavaScriptGitHub ActionsShopRung 60 min6 steps
- Lab 27Intermediate✓ Done JMeter with correlation Build a JMeter test plan for ShopRung shoppers: sign up once per thread, carry the token, a random product id and the new order id from response… Apache JMeter 5.6Java 17+Python 3ShopRung 75 min7 steps
- Lab 28Beginner✓ Done A ZAP baseline scan Scan your own copy of ShopRung with the OWASP ZAP baseline scan in Docker: read the 6 warnings it found, triage them into a rules file that fails… OWASP ZAPDocker ComposeGitHub ActionsShopRung 45 min6 steps
Part 10
Testing AI features
- Lab 29Intermediate✓ Done An eval set for a chatbot Build a real eval for ShopRung's support chat in Python: a golden set in JSON, checks with their own unit tests, a runner that saves raw answers,… Python 3.12pytesthttpxShopRung support chat 75 min8 steps
- Lab 30Intermediate✓ Done Test an agent's tool calls Test ShopRung's support chat as an agent: assert on the trace of tool calls, check answers against tool results, prove permissions with a second… Python 3.12pytesthttpxShopRung support chat 60 min7 steps
- Lab 31Intermediate✓ Done Catch a prompt injection Build a red-team suite for ShopRung's support chat: attacks in JSON by category, checks for invented coupons, prompt leaks and lost refusals, a… Python 3.12pytesthttpxShopRung support chat 60 min8 steps
Part 11
AI tools for testers
- Lab 32Intermediate✓ Done Test cases from a user story Ask a local model for boundary test cases from a ShopRung checkout story, then check every row with an oracle you write from the acceptance… Python 3.12pytestOllamallama3.2:3b 45 min6 steps
- Lab 33Intermediate✓ Done Drive a browser through MCP Connect Playwright MCP to your AI tool, then drive ShopRung through it from a script exactly as an agent does: tools, snapshots, refs, a password… Playwright 1.63Playwright MCPPython 3.12mcp SDK 2.3 60 min6 steps
- Lab 34Advanced✓ Done Plan, generate and heal Set up Playwright's planner, generator and healer agents on ShopRung: a seed test, a reviewed Markdown plan, tests in the generator's format, the… Playwright 1.63Playwright test agentsTypeScriptPython 3.12 60 min8 steps
- Lab 35Advanced✓ Done An agent that writes API tests Build a small agent loop: a local model writes a pytest file for one ShopRung requirement, the loop runs it, feeds the errors back, and a gate… Python 3.12pytesthttpxOllama 60 min6 steps
After the labs
Capstone projects
- Capstone 1IntermediateA full test strategy and suitePlan and build the testing for a whole product: a risk-based strategy, 48 API and UI tests tagged with requirement ids, a traceability report, a…7 hours8 milestones
- Capstone 2Coming soonA Java automation framework
- Capstone 3Coming soonA performance check of checkout
- Capstone 4Coming soonTest an AI support assistant
33 of 35 labs are ready. Java first, with Python, TypeScript and the tools each part needs.