Software Testing / Learning brief

Tom turns a hand-made API check into code

What this means in plain language

Mei wants the add-a-task check to run on every change. Tom writes it in Java and in Python, learns what a framework adds, and keeps the tool with buttons for exploring.

Understand the full idea, step by step

A teacher writes the question and the right answer on a marking sheet. Anyone can then mark the paper the same way. An API check in code does the same for a server.

Daily List is changing every day, and Mei wants the add-a-task check to run on every change.

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.

API checks written in code, as taught in this academy, against a made-up test site with made-up data.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. The code is described in words and was not run, and no tool versions are named.

Sources for this brief — 10 sources
  1. Market practice

    Usage (Representational State Transfer (REST) Assured library wiki) ↗ — Representational State Transfer (REST) Assured project (GitHub wiki) · Per the search excerpt, a Java library whose tests read as given (the request set-up), when (send the request) and then (check the reply) (search excerpt, page not opened)

    Per the search excerpt, a Java library for testing web APIs with a given, when, then layout: given holds the request set-up, when sends the request and then checks the reply. Practitioner guidance, not a standard. · Checked 2026-11-06

    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. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

  2. Market practice

    Quickstart (Requests documentation) ↗ — Python Requests · Shows reading the status code, calling json() to decode the body, and raise_for_status() for error codes (search excerpt, page not opened)

    Shows reading the status code, calling json() to decode the body, raise_for_status() for error codes, and that a decoded body does not mean the call succeeded. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-11-06

    Primary publisher body opened and relevant sections read on 6 November 2026; selected-section reading, not a claim every page or external link was read. See docs/research/v16-testing-automation-literacy-audit-20261106.md for exact sections, version and limitations.

  3. Market practice

    Get started (pytest documentation) ↗ — pytest development team · pytest finds functions named test_ in files named test_*.py, and a plain assert is enough because pytest shows the values behind a failed assert (search excerpt, page not opened)

    Says pytest finds test functions whose names start with test_ in files named test_.py or _test.py, and that a plain assert statement is enough because pytest reports the values behind a failed assert. Official language or tool documentation. · 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.

  4. Market practice

    JUnit 5 user guide (JUnit documentation) ↗ — JUnit team · JUnit Jupiter is the JUnit 5 model for writing tests; the @Test annotation marks a method as a test, and the Assertions class holds checks such as assertEquals (search excerpt, page not opened)

    Official guide. Per the search excerpt, JUnit Jupiter is the model for writing tests in JUnit 5, the @Test annotation marks a test method, and the Assertions class holds checks. The result list showed many guide versions; the 5.14.0 page was the newest seen. Tool documentation, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page for the 5.14.0 guide as listed in a search; 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

    TestNG documentation (Welcome to TestNG) ↗ — TestNG project · A TestNG suite is one XML file; each test in it lists classes; a method annotated @Test is a test method; before and after annotations wrap tests, tests in a group, or the whole suite (search excerpt, page not opened)

    Official documentation. Per the search excerpt, a suite is described by one XML file, each test in it lists classes, a method annotated @Test is a test method, and before and after annotations run around tests, tests in a group or the suite. Tool documentation, not a standard. · 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; 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.

  6. Market practice

    Arrange-Act-Assert: A Pattern for Writing Good Tests (Automation Panda) ↗ — Automation Panda (Andrew Knight) · Arrange, Act, Assert and Given, When, Then are the same idea under two names; the Act step can be a call to a REST API; keep one behaviour per test (search excerpt, page not opened)

    Practitioner article. Per the search excerpt, Given-When-Then and Arrange-Act-Assert are the same idea under two names, the Act step can be a call to a REST API, and each test should hold one behaviour. Practitioner guidance, not a standard. · 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; 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

    API Testing with Postman or REST Assured: Which Tool Is Right for You? (Mindbowser) ↗ — Mindbowser · A tool with buttons suits exploring and mixed teams; a Java library suits tests that live in the code base and run in the build; several teams use both (search excerpt, page not opened)

    Vendor blog. Among search results that said a tool with buttons suits exploring and mixed teams and a Java library suits tests that live in the code base, and that teams often use both. Opinion and partly marketing, not a standard. · 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; 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. Market practice

    How to parametrize fixtures and test functions (pytest documentation) ↗ — pytest · pytest can run one test function over a table of inputs using parametrize (search excerpt, page not opened)

    Says the parametrize marker defines several argument sets so one test function runs once per set, and that fixtures can also be parametrized. 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.

  9. Market practice

    What do you assert on when doing API testing? (Ministry of Testing club thread) ↗ — Ministry of Testing · A practitioner thread on what to assert in API tests: the status code and response time, the headers such as content type, and the shape and values of the body (search excerpt, page not opened)

    Practitioner discussion thread. Per the search excerpt, people assert on the status code and response time, on headers such as content type, and on the shape and values of the body. Opinion of practitioners, not a standard. · 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; 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.

  10. 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 HEREYour first scripted API check: from a manual request to a repeatable testYou can already send an API request by hand. Learn how to turn one into a script that checks the reply, uses its own data, cleans up, and gives the same answer every run.Opens at L0 Explain simply · about 20 min

Related briefs

Tom turns the knobs by hand

Mei hands Tom a neuron on paper and he nudges its weights by hand. Leo then claims full neuron coverage, and Tom asks whether any answer was checked.

READ BRIEF