1:1 Learning Session

Automate API Tests Using Postman

This session to to teach you how to use Postman to create and run automated API tests. This includes setting up test collections, writing tests, and using variables; Newman to automate running those tests, ideal for integration into continuous integration workflows.

Session Plan

What we will cover

How to use Postman, create and run automated API tests.

1. Introduction to Postman and API Testing

Brief overview of Postmanโ€™s capabilities for API testing.

Quick start on creating your first API request and understanding the Postman interface.

2. Writing API Tests in Postman

Dive into writing tests for API responses, focusing on status codes, response bodies, and response times.

Introduction to using variables and environments in Postman for dynamic testing.

3. Exporting Postman Collections

How to organize your API requests into collections.

Steps to export a Postman collection for use with Newman.

4. Getting Started with Newman

Introduction to Newman and its role in automating Postman tests.

Installing Newman via npm and running your exported collection from the command line.

Reviewing test results in the terminal.

5. Integrating Newman into CI/CD Pipelines

Basic concepts on how Newman tests can be integrated into CI/CD pipelines for automated execution during builds or deployments.

Example scripts or commands to add Newman to a CI/CD configuration.

6. Advanced Newman Usage

Brief overview of running Newman with Docker for containerized environments.

Using Newmanโ€™s reporters (HTML, JSON, etc.) to generate and customize test reports.

Book your session now:
Automate API Tests Using Postman