Book Image

API Testing and Development with Postman - Second Edition

By : Dave Westerveld
5 (1)
Book Image

API Testing and Development with Postman - Second Edition

5 (1)
By: Dave Westerveld

Overview of this book

Postman is an invaluable tool for exploration and testing of web APIs and helping testers and developers figure out how an API works. With Postman, you can create effective test automation for any APIs, and this guide will help you unleash its full potential. API Testing and Development with Postman is an invaluable resource for anyone who wants to create a good quality API, but isn't sure how to go about it. This guide will help you unleash the full potential of Postman’s test automation capabilities. 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. After you’ve familiarized yourself with the theory, you’ll move on to hands-on projects that will teach you how to add test automation to an existing API. You’ll also learn some of the new and powerful features that Postman has that can help you avoid introducing bugs. This second, fully updated edition features new chapters on workflow testing, creating and using mock servers, API security testing, and performance testing. The new and expanded information in this edition will help you future-proof your APIs. 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 (12 chapters)
1
API Testing and Development with Postman, Second Edition: API creation, testing, debugging, and management made easy

Challenge – data-driven testing with multiple APIs

I don't have the space to work through another full example, but I would like you to practice this a little more. I'm going to give you a challenge that I think will be, well, challenging. In this section, I will get you started with the challenge and give you a few hints to help you successfully solve it. In order to solve this challenge, you will need to use everything you have learned in this chapter about data-driven testing, but you will also need to use some of the information covered in Chapter 6, Creating Test Validation Scripts. In that chapter, I explained how to create tests that use multiple requests, and you are going to need that information to solve this challenge.

Challenge setup

For this challenge, I want you to use the Postman Echo API. This sample API has a number of different endpoints that you can use. In this case, you will use the Time Addition (https://postman-echo.com/time/add) and Time Subtraction...