Software Testing / Learning brief
Tom turns a hand-made API check into code
In simple terms / 01
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.
Complete lesson / 02
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 / 03
Evidence & review
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
- 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)
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.
- 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)
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.
- 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)
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.
- 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)
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.
- 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)
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.
- 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)
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.
- 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)
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.
- 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)
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.
- 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)
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.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
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.