Lesson 74 — AI-Assisted Testing: Fast Drafts, Human Verdicts · Practical QA
LESSON VIEW
LAB-10 · AUTOMATION PRACTICE LAB · PRACTICAL QA

Lesson 74 — AI-Assisted Testing: Fast Drafts, Human Verdicts

Objective: Use AI tools the way strong QA engineers do: generate draft cases and code quickly, then verify every value against the requirement, every locator against the real page, and every API call against the official docs — and prove your unaided competence at the capstone checkpoint.

⏱ ≈2 h practice unit · Includes the course's unaided checkpoint · English edition — Español · العربية · বাংলা in translation

🧽 The practice business: FreshNest Home Cleaning — a fictional local cleaning company (owner: Maya Torres) invented for this course. Every example and exercise uses FreshNest, so you learn on a complete, realistic business without ever touching a real one.

⚡ Key Points

  • AI drafts fail three ways: invented values, invented interfaces, weak oracles.
  • Verify every expected value against the requirement — recompute it yourself.
  • Verify every locator and API call against the real page or official docs.
  • Watch the finished test fail on the broken build for the right reason.
  • Never paste secrets or customer data into external tools; label assisted vs unaided work honestly.

📖 Read

AI tools will happily write you a test in ten seconds. Some of it will be right. The professional skill is no longer producing the first draft — it is knowing which parts of the draft can lie to you. Three failure modes cover most of the damage. Invented values: the tool generates a plausible expected result ($190 for a Deep clean) that contradicts the requirement ($210) — plausible is not a source. Invented interfaces: selectors, methods, and endpoints that do not exist (#price-output instead of #estimate-output; a Playwright method from a different library's API) — the code reads beautifully and fails on contact with reality, or worse, is quietly 'fixed' by weakening the assertion until it passes. And weak oracles: assertions that check visibility or status while the business value goes unverified — AI drafts default to these because they look like tests. Every one of these is a failure mode this course has already taught you to catch by hand; AI assistance raises the volume, not the standard.

The working method is a loop with the human on the verdict side. Draft with the tool: paste the requirement text (never secrets, customer data, or proprietary code — external tools are outside your company's walls) and ask for cases including boundaries and negatives. Verify the oracle: recompute every expected value from the requirement yourself; a value you cannot derive is a value you delete. Verify the interfaces: run the code; for every locator and method, confirm it exists in the real page or the official documentation — documentation, not the tool's confidence, is the reference. Then strengthen: replace visibility checks with value checks, add the refusal case, and run the finished test against the broken build to watch it fail for the right reason. A test that has never failed has never been seen to work — that rule does not bend for machine-written tests.

Finally, the honesty rules that keep this skill employable. Your portfolio and your interviews must distinguish assisted from unaided work, because employers will test the difference live: this course therefore ends with an unaided checkpoint — a fundamentals set and a code-explanation exercise completed without AI assistance, labelled 'unaided' in your evidence pack. Using AI at work is normal and expected; claiming its output as your unaided competence is the one move that ends interviews. Also treat content the tool reads as untrusted: web pages and test data can carry instructions aimed at the tool (prompt injection), so the human reviews anything the tool proposes to run, send, or delete — the tool proposes, you dispose.