Software Testing / Learning brief

Tom measures twice before he trusts the saw

What this means in plain language

An assistant writes a Daily List check in seconds. Tom reads it, swaps a fragile locator, replaces a call that does not exist, strengthens a weak assertion, and runs the check failing first.

Understand the full idea, step by step

A power saw cuts a plank in one second. That is its gift, and its danger. If you did not measure, you get a fast, clean cut in the wrong place.

Tom has an assistant that writes automated checks as fast as a saw cuts. He decides to measure twice, and then to cut once, with the proof in his hand.

Evidence & review

REVIEWED 2026-10-18

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Using an AI assistant to write automated checks, in an invented to-do app. The sources are search excerpts and can change.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. The assistant's code is invented, and no real tool was run. Sources were seen only as search excerpts.

Sources for this brief — 8 sources
  1. Market practice

    How to generate unit tests with GitHub Copilot: tips and examples (GitHub Blog) ↗ — GitHub · Name the test framework, list the edge cases and boundary values you want, keep the code under test in view, and treat generated tests like any other code: never trust them without your normal review (search excerpt, page not opened)

    Vendor guidance on prompting a coding assistant for unit tests. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    StudioAssist overview (Katalon documentation) ↗ — Katalon · The assistant can generate code that uses made-up built-in keywords; check generated code and replace them with valid ones; it does not know your test objects, variables or custom keywords unless you say so in the prompt (search excerpt, page not opened)

    Vendor documentation that lists the limits of its own assistant. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Building better tests with artificial intelligence (Ministry of Testing media session) ↗ — Ministry of Testing · A practitioner talk says language models tend to default to fragile CSS selectors and that assertions can break on content changes; the page is behind a free account, so only the abstract was seen (search excerpt, page not opened)

    Practitioner talk abstract. It describes one speaker's experience, not a measured result. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Why AI can't write good Playwright tests and how to fix it (DEV Community) ↗ — DEV Community · The author reports that assistants using accessibility snapshots often write position-based locators such as a role plus a position index, and fixes it by scoping a role locator inside a test-id container (search excerpt, page not opened)

    One practitioner's report. Treat it as an experience, not a measurement. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  5. Market practice

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Test user-visible behaviour, keep tests isolated, prefer role and text locators over fragile selectors, and use web-first assertions (search excerpt, page not opened)

    Recommends user-facing locators such as role-based ones over Cascading Style Sheets (CSS) or XPath, web-first assertions that retry, and avoiding fixed waits. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. A second search on 2026-10-20 returned this page for its title and matched the described content; the page was still not opened (search excerpt, page not opened).

  6. Market practice

    We have a package for you! A comprehensive analysis of package hallucinations by code generating language models (arXiv 2406.10279) ↗ — arXiv (University of Texas at San Antonio and others) · Code-generating models sometimes name software packages that do not exist; an attacker can register such a name, so a developer who installs it is exposed (search excerpt, page not opened)

    Research on package names. It backs the point that generated code can name things that are not real. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  7. Market practice

    Towards mitigating API hallucination in code generated by language models with hierarchical dependency awareness (arXiv 2505.05057) ↗ — arXiv (FSE 2025 industry paper) · Models can call interface methods that do not exist or misuse real ones (search excerpt, page not opened)

    Research that names invented method calls as a known problem. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page or preprint, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  8. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREReading, writing and repairing automated checks and page objects with AIAsk an artificial intelligence assistant to write an automated check, then read it line by line, repair brittle locators and invented calls, and run it failing first.Opens at L0 Explain simply · about 18 min

Related briefs