TOPIC 49/6216 MINNOT STARTED

Postman: a first collection of API checks

Postman lets you save API calls, share the settings, and add checks. Build a small collection and run it again whenever the app changes.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a recipe card box. A cook keeps recipe cards in one box. Every card lists the same kitchen settings at the top: the oven, the pan, the salt. A cook who changes the oven once changes it for the whole box.

Each card also says what the dish should look like when it is ready. The cook checks the dish against the card, every time.

A is a box of calls. The environment is the kitchen settings. The test script is the line on each card that says what ready looks like.

Tom, the tester at Daily List, a to-do list app, keeps one box for the task API. When the app changes, he runs the whole box again and sees which cards fail.

PLAIN WORDS · 1 in this section
pan
a wide cooking dish used on a stove

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Keeping calls and their checks in one reusable place, like a box of recipe cards with the kitchen settings written once.

  1. Save the calls
  2. Set the environment
  3. Add the checks
  4. Run them all
Recipe box

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The box of recipe cardsA Postman collection
The kitchen settingsAn environment
The line that says what ready looks likeA test script
Cooking every card in orderRunning the collection

WHERE THIS PICTURE STOPS

  • A recipe box is on paper, but a collection can run itself.
  • Kitchen settings are few, but an environment can hold many values.
  • A cook can see the dish, but a script only sees what it checks.

HOOK

One box, one set of settings, every card checked.

TELL A FRIEND

A box of recipe cards: the settings once, each dish checked against its card.

OFTEN MIXED UP WITH Your first scripted API check: from a manual request to a repeatable test. That topic writes one scripted check by hand. This one keeps many calls in a collection and runs them again and again.

PRACTISE AND KEEP

Sources for this topic — 4 sources
  1. Market practice

    Write scripts to test API response data in Postman (Postman Learning Center) ↗ — Postman · Postman Learning Center: test scripts use pm.test with a name and a function, and Chai-style pm.expect for checks (search excerpt, page not opened)

    Per the search excerpt, a test is written with a name and a function; the test fails if any check inside fails. Checks use the Chai expect style. 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. 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

    Store and reuse values using variables (Postman Learning Center) ↗ — Postman · Postman Learning Center: variables hold values such as a base URL so a request can be reused in many places (search excerpt, page not opened)

    Per the search excerpt, variables come in five scopes: global, collection, environment, data and local; the narrowest scope wins. 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. 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

    Newman command reference (Postman Learning Center) ↗ — Postman · Postman Learning Center: Newman runs an exported collection from the command line, with -e for an environment file (search excerpt, page not opened)

    Per the search excerpt, Newman runs a collection from the command line and can take an exported environment. The page says Newman is no longer maintained and points to the Postman command line tool for newer collection formats. 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. 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

    Newman CLI Overview — Postman documentation Latest (v12) ↗ — Postman · Latest(v12)NewmanCLIOverview:legacycollectionv2.1JSON,no further updates/fixes,currentPostmanCLI supportsv3;record runner/collection versions (relevant primary passages opened6November2026).

    Current vendor page opened: Newman supports collectionv2.1 JSON, not current collectionv3; no further updates or fixes. Postman CLI handles v3. Legacy exercises explicitly retain compatible v2.1 files. · Checked 2026-11-06

    Opened relevant primary passages on6November2026 via normal web search and document view. Current vendor page opened: Newman supports collectionv2.1 JSON, not current collectionv3; no further updates or fixes. Postman CLI handles v3. Legacy exercises explicitly retain compatible v2.1 files.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.