Book Image

API Testing and Development with Postman

By : Dave Westerveld
1 (1)
Book Image

API Testing and Development with Postman

1 (1)
By: Dave Westerveld

Overview of this book

Postman enables the exploration and testing of web APIs, helping testers and developers figure out how an API works. With Postman, you can create effective test automation for any APIs. If you want to put your knowledge of APIs to work quickly, this practical guide to using Postman will help you get started. The book provides a hands-on approach to learning the implementation and associated methodologies that will have you up and running with Postman in no time. Complete with step-by-step explanations of essential concepts, practical examples, and self-assessment questions, this book begins by taking you through the principles of effective API testing. A combination of theory coupled with real-world examples will help you learn how to use Postman to create well-designed, documented, and tested APIs. You'll then be able to try some hands-on projects that will teach you how to add test automation to an already existing API with Postman, and guide you in using Postman to create a well-designed API from scratch. By the end of this book, you'll be able to use Postman to set up and run API tests for any API that you are working with.
Table of Contents (19 chapters)
1
Section 1: API Testing Theory and Terminology
6
Section 2: Using Postman When Working with an Existing API
13
Section 3: Using Postman to Develop an API

What this book covers

Chapter 1, API Terminology and Types, covers some of the basic terminology used in API testing and development, along with providing an explanation of the different types of APIs.

Chapter 2, Principles of API Design, covers the design principles that apply to API creation and testing.

Chapter 3, OpenAPI and API Specification, explains what API specifications are and enables you to get started using them in Postman.

Chapter 4, Considerations for Good API Test Automation, explains how to execute long-lasting and useful API test automation in Postman.

Chapter 5, Understanding Authorization Options, explains how to use many of the common API authorization options in Postman.

Chapter 6, Creating Test Validation Scripts, explains how to create and use test scripts in Postman.

Chapter 7, Data-Driven Testing, explains how to use data-driven testing in Postman to create scalable API tests.

Chapter 8, Running API Tests in CI with Newman, explains how to run API tests at the command line with the Newman application.

Chapter 9, Monitoring APIs with Postman, explains how to monitor the production usage of APIs with Postman Monitoring.

Chapter 10, Testing an Existing API, goes through an existing API and explains what kinds of tests to add and how to add them.

Chapter 11, Designing an API Specification, goes in-depth in terms of how to create an OpenAPI specification that can be used in Postman.

Chapter 12, Creating and Using a Mock Server in Postman, explains how to set up and use mock servers.

Chapter 13, Using Contract Testing to Verify an API, explains what contract testing is and how you can create and use contract tests in Postman.

Chapter 14, Design and Create an API, covers all the steps involved in creating an API, from design through to specification and testing.