Day 20 · Data-driven tests

🎫 QA-120Week 4 · Day 20⏱ 90 minutesPriority: Medium

From: Priya, QA Lead

We designed coupon and validation cases in Week 2. Automate them data-driven: the cases live in data files, one test per row, so anyone can add a case without touching code. Start with coupons and the checkout Contact step.

Data-driven tests turn your Week 2 design work into automation that scales. The AI is great at the loop — and careless with the data: expected values it calculated wrongly, rows the UI cannot reach, and characters that look the same but are not. Today the app decides every expected value.

📦 What you will deliver today
  • automation/data/coupons.json and automation/data/contact.json.
  • automation/tests/coupons.spec.ts and automation/tests/contact-validation.spec.ts — one test per row, all green.

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.

Day 19 · Fix 3 flaky tests

🎫 QA-119Week 4 · Day 19⏱ 90 minutesPriority: High

From: Priya, QA Lead

Three tests keep failing “randomly” and the team has started ignoring red builds. Find the root cause of each, fix it properly, and prove the fix. Retries and bigger timeouts are not fixes.

Flaky tests destroy trust in automation. When you paste a flaky failure into an AI, its favourite answers are “increase the timeout”, “add retries: 3” and “use test.slow()” — all of which hide the problem. Today you make the flakiness visible, find the real cause with evidence, and fix it.

📦 What you will deliver today
  • automation/flaky/flaky.spec.ts (the originals) and automation/flaky/fixed.spec.ts (your fixes).
  • automation/flaky/FLAKY-REPORT.md — for each test: symptom, evidence, root cause, fix, proof.

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.

Day 18 · Review the AI’s test code

🎫 QA-118Week 4 · Day 18⏱ 60 minutesPriority: High

From: Priya, QA Lead

A new teammate asked an AI for “a test for login, cart and checkout” and opened a pull request. It is green. Review it before I merge: what is wrong, why it matters, and what it should look like. Be specific — line by line.

Code review is the skill that separates people who use AI from people who can be trusted with it. The file below passes. It also checks almost nothing. Today you review it, ask the AI to review it too, compare the two reviews, and prove your point by breaking the app’s behaviour without the test noticing.

📦 What you will deliver today
  • automation/review/REVIEW-001.md — a review with line numbers, problem, risk and fix.
  • A rewritten version of the test (or a note that your Day 16–17 tests already cover it).

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.

Day 17 · Page objects

🎫 QA-117Week 4 · Day 17⏱ 90 minutesPriority: High

From: Priya, QA Lead

Before the suite grows, give it a structure: page objects for product, cart and checkout, wired in as Playwright fixtures. Then automate our top checkout risks: a digital order with UPI, a physical order with a card and express delivery, and a declined card.

Page objects are where AI over-engineers: base classes three levels deep, a “god” page with 60 methods, assertions hidden inside helpers, string selectors passed around. Today you ask for a small design, keep assertions in the tests, and automate three flows from your Week 1 risk register.

📦 What you will deliver today
  • automation/pages/ — ProductPage, CartPage, CheckoutPage and fixtures.ts.
  • automation/tests/checkout.spec.ts — 3 green end-to-end tests.

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.

Day 16 · A Playwright project with your AI

🎫 QA-116Week 4 · Day 16⏱ 90 minutesPriority: High

From: Priya, QA Lead

Time to automate. Set up a Playwright project in TypeScript for SQA Shop and write the first two smoke tests: search, and add to cart. Use your AI as a pair programmer — but every line that goes into the repo is yours to explain.

AI tools write Playwright code fast. They also write the habits Playwright was built to remove: fixed sleeps, brittle CSS and XPath, assertions that do not wait, and data-testid values that do not exist. Today you set up the project properly and teach the AI how this app is built.

📦 What you will deliver today
  • automation/ — a Playwright TypeScript project with baseURL set to SQA Shop.
  • automation/tests/smoke.spec.ts — 2 green tests: search and add to cart.
  • ai/automation-rules.md — your rules for AI-written test code.

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.

Day 15 · The API test report

🎫 QA-115Week 3 · Day 15⏱ 60 minutesPriority: High

From: Priya, QA Lead

The partner team asks: is the API ready for them? Write an API test report I can forward without editing — scope, results, defects, risks and a clear recommendation. Two pages at most, and every number must be one we can show.

Reports are where AI saves the most time and where it does the most damage: invented pass rates, “100% coverage”, and confident recommendations nobody signed off. Today you collect your evidence first and let the AI write only from it.

📦 What you will deliver today
  • reports/api-test-report.md — a two-page API test report.
  • bugs/BUG-005.md — the ETag defect from Day 12, if you saw it.
  • Your Postman/Bruno run exported as evidence (reports/api-run.json or a screenshot).

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.

Day 14 · SQL and data validation

🎫 QA-114Week 3 · Day 14⏱ 90 minutesPriority: Medium

From: Priya, QA Lead

Finance wants proof that order data is consistent: totals, tax, links between orders, users and products. Load the API data into a database and write SQL checks we can rerun after every release. A check that finds nothing is fine — as long as you can show it would have found something.

Data validation with SQL is a top skill in QA job descriptions. AI is very good at writing the SQL — and quietly wrong in the details: joins that drop rows, sums doubled by joins, float comparisons that never match. Today the AI writes a loader and the queries; you make sure they are correct and that they can fail.

📦 What you will deliver today
  • api-tests/data/load_api.py — loads people, products, orders and order items into SQLite.
  • api-tests/data/checks.sql — at least 8 data checks, each returning rows only when something is wrong.
  • api-tests/data/DATA-REPORT.md — results, plus the mutation you used to prove each check works.

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.

Day 13 · Auth lab: negative and security cases

🎫 QA-113Week 3 · Day 13⏱ 90 minutesPriority: High

From: Priya, QA Lead

Security asked us to cover authentication and authorisation on the API: missing, wrong, expired and tampered credentials, and what a read-only user can do. Use the practice auth lab — it is built for exactly this. Stay inside the test scope: no brute force, no load.

Auth testing is where testers add real value and where AI is both helpful and risky. It knows the patterns (401 vs 403, token tampering, expiry) but it also suggests “attacks” you are not authorised to run, and it often mixes up the status codes. Today you build an auth test matrix, run it, and keep it ethical.

📦 What you will deliver today
  • api-tests/auth-matrix.md — at least 16 cases: credential, request, expected status + error code, actual.
  • The cases added to your collection as an “Auth” folder.

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.

Day 12 · Generate and run API checks

🎫 QA-112Week 3 · Day 12⏱ 90 minutesPriority: High

From: Priya, QA Lead

Turn the API map into an automated collection: pagination, filters, errors, schema checks and a full create-read-update-delete cycle on /objects. I want it to run in one click and to fail loudly when the API breaks.

AI writes API test scripts quickly. The usual problems are not syntax — they are weak assertions (only “status is 200”), wrong assumptions about the response shape, and tests that can never fail. Today you generate a collection, run it, and then break it on purpose to prove the checks work.

📦 What you will deliver today
  • api-tests/sqa-api.postman_collection.json (or a Bruno folder / a script) with at least 15 requests and tests.
  • api-tests/RESULTS.md — the run result, and the checks you broke on purpose to prove they fail.

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.

Day 11 · Read the practice API

🎫 QA-111Week 3 · Day 11⏱ 60 minutesPriority: High

From: Priya, QA Lead

This week we test below the UI. Our platform team’s practice REST API serves users, products and orders to the partner apps. Before writing a single check, I want an API map: every endpoint, its auth, its parameters and its rules — verified, not guessed. Add a separate context file for the API so your AI stops mixing it up with the shop.

An AI that reads API docs will happily “complete” them: a POST /orders that does not exist, a limit parameter instead of per_page, auth on endpoints that are public. Today you build an API map from the real source — the API’s own endpoint list and JSON Schemas — and prove each line with a request.

📦 What you will deliver today
  • api-tests/api-map.md — endpoints, methods, auth, parameters, rules and open questions.
  • ai/api-context.md — a context file for the API (separate from ai/context.md).
  • An API client set up (Postman, Bruno or curl) with a base URL variable.

🔒 The rest of this mission is part of SQA Tools Pro

Step-by-step prompts for ChatGPT, Claude and Gemini, the “Catch the AI” traps, the acceptance checklist, the reference solution and your interview line.

Start your 7-day free Pro trial See plans

New accounts get every Pro feature free for 7 days — no card needed.