Courses / Professional engineering / API Testing with Postman & Newman

₹69Self-paced

API Testing with Postman & Newman

Build a Postman contract test suite with environments, scripted assertions, fixtures and authentication cases, and run it with Newman in CI.

  • Who it's for. Developers and testers who can call a JSON API and write small JavaScript functions.
  • Before you start. Courses: REST API Design, Software Testing and Test-Driven Development.
  • 35 to 59 hours of study with practice
  • 8 modules, 63 lessons
  • 4 guided projects and a final project

What you'll learn

  • Build requests, variables and environment files for a local API and keep secrets out of the repository.
  • Write Postman test scripts with Chai assertions for status, headers, timing, JSON bodies and JSON Schema.
  • Chain, branch, select and reuse requests in collections, and document behaviour with examples and a local mock.
  • Control test data with reset, setup, unique tags, cleanup and CSV or JSON data-driven runs, and prove repeatability.
  • Test bearer, API key, Basic and token-expiry scenarios, with 401 and 403 matrices, without leaking credentials into reports.

Skills you'll gain

  • API test workspace
  • Requests
  • environments
  • Assertions
  • scripts
  • Collections
  • workflows
  • Fixtures
  • cleanup
  • Authentication scenarios
  • Newman execution
  • Contract suite

Tools you'll use

  • Postman
  • Newman
  • JavaScript
  • Chai assertions
  • JSON Schema

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 5 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 2

    Workspace and first requests

    Covers API test workspace and Requests and environments.

    You build: Guided project: Contract table, start-lab script, collection inspector, tooling decision record, repository layout with secret check, pinned Newman and a recorded baseline run.

  2. 02

    Modules 3 to 4

    Asserted workflows

    Covers Assertions and scripts and Collections and workflows.

    You build: Guided project: Named tests for status, body, headers, timing and schema plus negative variants and a script-error fix note.

  3. 03

    Modules 5 to 6

    Controlled data and authenticated suite

    Covers Fixtures and cleanup and Authentication scenarios.

    You build: Guided project: Guarded reset, setup and cleanup folders, run tag, CSV and JSON data-driven requests and a repeatability script.

  4. 04

    Module 7

    Newman pipeline

    Covers Newman execution.

    You build: Guided project: Gate script, documented command, JSON and JUnit checks, HTML report with dependency note, timeout choices, CI workflow and runner migration memo.

  5. 05

    Module 8

    Final project and assessment

    Covers Contract suite, then the final project: Repeatable API contract suite with controlled data and CI report.

    You build: Final project, one of: Option A: Library loans API contract suite.

Full curriculum

8 modules and 63 lessons, 35 to 59 hours of study

01API test workspace8 lessons, 4 to 6 hours

Lessons

  • Reading the contract of the system under test
  • Running the Loans API fixture on loopback
  • Anatomy of a Postman collection file
  • Postman app, Newman and Postman CLI compared
  • A workspace repository layout for API tests
  • Sending the first request and reading the result
  • Pinning the toolchain: Node, Newman and lockfile
  • Reading a Newman run summary and exit code

After this module you can

  • Turn a written API contract into a table of endpoint, method, auth need, success status and error statuses before writing any request.
  • Start the course-supplied Loans API on 127.0.0.1, confirm health with one request, and capture the exact start command and port.
  • Interpret the end-of-run summary table (iterations, requests, scripts, assertions) and map each failed count to a non-zero exit status.
02Requests and environments7 lessons, 3 to 5 hours

Lessons

  • Method, URL, query and path parts of a request
  • Sending JSON bodies with the correct Content-Type
  • Form-urlencoded and multipart bodies
  • Variable scopes and precedence
  • Environment files and switching targets
  • Keeping secrets out of the collection and the repo
  • Dynamic variables for unique request data

After this module you can

  • Compose requests with the right method, path variables and query parameters and verify the resolved URL in the run output.
  • Send a JSON body with raw mode and a Content-Type header and observe the server's different answers for a missing header and malformed JSON.
  • Generate unique emails, ids and timestamps with Postman dynamic variables so repeated runs do not collide.
03Assertions and scripts8 lessons, 4 to 6 hours

Lessons

  • pm.test and status assertions
  • Chai expectations on a JSON body
  • Header and response-time assertions
  • JSON Schema validation of a response
  • Passing values between requests
  • Pre-request scripts that compute inputs
  • Asserting on error responses
  • Script errors versus assertion failures

After this module you can

  • Write a pm.test block that asserts an exact status code and observe how a failing assertion appears in the Newman summary.
  • Assert on response JSON properties, types and values with pm.expect and pm.response.json().
  • Distinguish a failed assertion from a thrown script error in Newman output and debug each with console.log.
04Collections and workflows8 lessons, 4 to 6 hours

Lessons

  • Folder structure and script inheritance
  • Chaining a create-read-update-delete workflow
  • Branching with setNextRequest
  • Polling loops with a hard attempt limit
  • Running parts of a collection with --folder
  • Saved examples as documentation and expected responses
  • Mock servers from examples and the no-account alternative
  • Reusing test logic across requests

After this module you can

  • Place a shared pre-request or test script at collection or folder level and predict the order scripts run for a request.
  • Build a five-request workflow that creates a resource, reads it back, updates it, deletes it and reads it again, asserting each step and the final 404.
  • Share assertion helpers across a collection through a collection-level script and understand the limits of sharing code between scripts.
05Fixtures and cleanup8 lessons, 4 to 6 hours

Lessons

  • Why a suite needs controlled starting state
  • A guarded reset endpoint and seed data
  • Setup requests: arranging state through the API
  • Unique names to avoid collisions in shared state
  • Cleanup folders that run after failures
  • Data-driven runs with CSV files
  • Data-driven runs with JSON data and typed values
  • Proving the suite is repeatable

After this module you can

  • Demonstrate a test that passes on a fresh fixture and fails on a dirty one, and name the state it silently depended on.
  • Reset the fixture to a known seed with a single request, and prove the endpoint is absent when TEST_MODE is off.
  • Run the suite three times in a row and show identical assertion counts and exit codes, then explain any difference.
06Authentication scenarios8 lessons, 4 to 6 hours

Lessons

  • Logging in and reusing a bearer token
  • Collection-level auth inheritance and overrides
  • API key and Basic authentication requests
  • Token expiry and refresh in a pre-request script
  • Negative authentication matrix: 401 cases
  • Authorization tests: roles and object ownership (403 and 404)
  • Keeping credentials out of reports and logs
  • The OAuth 2.0 helper and what to script instead

After this module you can

  • Call the login route once, store the access token and send it as an Authorization Bearer header on later requests.
  • Set Bearer auth once on the collection or folder, override it on one request, and mark one request as no-auth.
  • Explain which parts of an OAuth 2.0 flow Postman's helper automates, note CLI limitations as 'verify current', and script a client-credentials token request for tests.
07Newman execution8 lessons, 4 to 6 hours

Lessons

  • Exit codes and --bail as gates
  • Environments, globals, iteration data and working directory
  • The JSON reporter and asserting on run counts
  • JUnit XML output for CI test views
  • An HTML report with a community reporter
  • Timeouts, delays and flake control
  • A CI job that runs the suite and keeps the reports
  • Newman's maintenance status and migrating to the Postman CLI

After this module you can

  • Use Newman's exit code as a pass-fail gate and compare the default behaviour with --bail and -x on the installed version.
  • Combine -e, --env-var, --global-var, -d, -n and --working-dir in one command and predict which values win.
  • Record Newman's current maintenance and compatibility statements from Postman's docs and sketch a migration path to the Postman CLI.
08Contract suite8 lessons, 4 to 6 hours

Lessons

  • From contract matrix to test inventory
  • Folder design: happy, validation, auth, not-found and conflict
  • Reusable JSON Schemas per resource
  • A single error contract across endpoints
  • Mutation checks: proving the suite can fail
  • Order independence and isolation
  • The CI evidence pack
  • Maintaining the suite: reviews, versions and drift

After this module you can

  • Map every row of the contract matrix to one or more named requests and report uncovered rows as a number.
  • Organise the suite into folders per behaviour class and justify the order so setup, positive paths and cleanup are separated.
  • Define a review checklist and a drift process for collection edits, dependency updates and contract changes.

What you'll build

4 guided projects along the way, then a final project.

  • Workspace and first requests

    after module 2
  • Asserted workflows

    after module 4
  • Controlled data and authenticated suite

    after module 6
  • Newman pipeline

    after module 7

Final project

Repeatable API contract suite with controlled data and CI report. Options: Option A: Library loans API contract suite. Test the Loans fixture (or the learner's Express API with the same contract) across books, loans and login.

What you submit

Source and artefact submission: collection, environments (templates only), data files, scripts, fixture start instructions and evidence pack in one repository or archive.

How it's reviewed

Trainer-reviewed demonstration. Rubric (proposal): contract coverage and traceability (25%) assertion quality including negative tests and mutation detection (25%) data control, repeatability and isolation (20%).

Where you'll use it

  • Check status, headers and JSON body shape for every endpoint after each change.
  • Run a collection with Newman in a CI job and publish JUnit and HTML reports.

Roles that use these skills

  • QA Engineer
  • API Test Engineer
  • Test Automation Engineer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What do I need before starting?

Able to call and read an HTTP JSON API (REST API Design, the earlier course), write small JavaScript functions and use a terminal (Testing and TDD, the earlier course is recommended for the idea of a failing check; Node.js/Express API, the earlier course, is helpful because the sample API follows its style). Accepted equivalents: any prior experience calling REST APIs with curl or an HTTP client and reading status codes.

When do I get a certificate?

We do not issue certificates until you successfully build and demonstrate your live project. Staff issue certificates after review; nothing is issued automatically.

Be first in when API Testing with Postman & Newman opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹69Opens soon
Notify me