Manuals / Postman & API Exploration / Ch 3

CoreIntermediate40 min read

3. Tests & monitors

Postman & API Exploration · 12 pages source format

pm.test assertions and collection runner basics.

What you'll learn

  • pm.test
  • Runner
  • Newman intro

Key idea

Assert status and JSON fields in the Tests tab so regressions show up in the runner.

Quick check

pm.test runs…

Do this now

Write 3 notes on: Postman tests.

Clear?

Practice

Add status + schema-ish asserts to two requests.

Starter
pm.test("status 200", () => pm.response.to.have.status(200))

Do this now

Commit one file practicing Postman tests.

Clear?

Checklist