Software Testing / Learning brief

Tom builds one spec for forty API tests

What this means in plain language

Tom puts shared settings in a specification, and Mei extracts an id and adds a schema check.

Understand the full idea, step by step

Analogy: a restaurant order form. A good order form has your table number and your allergies already printed. You tick what you want and the kitchen checks the plate against the form.

You do not write your allergies every time.

A specification is that form. Tom, the tester at Daily List, a to-do list app, prints the base address once.

Evidence & review

REVIEWED 2026-10-31

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 Rest Assured specifications and schema checks. The people and app are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own.

Sources for this brief — 2 sources
  1. Market practice

    Usage guide (the Rest Assured project wiki) ↗ — Rest Assured project · Rest Assured wiki: the path syntax for reading a reply follows Groovy rules, a schema check is added with the JSON schema validator module, and a specification can be reused across tests (search excerpt, page not opened)

    Official REST Assured library behaviour, scoped to the named sections and 6.3.0 documentation. Not a universal API contract or a guarantee about future releases. · Checked 2026-11-08

    Primary sections opened in full on 8 November 2026: specification reuse, defaults, extraction after validation, JSON paths, JSON Schema settings/version selection and header logging. Current examples use 6.3.0. Older Draft 4 examples remain on the same page; the newer-version section must also be read. No publisher image is copied by this correction.

  2. 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 HERERest Assured: reusable specs, reading the reply and checking its shapeReuse request settings, check a reply, then pass its id to the next call. Learn which schema rules catch a bad reply and which facts still need a test.Opens at L0 Explain simply · about 22 min

Related briefs