Avoid common API coding pitfalls and make test automation effortless with Postman and the Newman CLI
Key FeaturesLearn the tenets of effective API testing and design with workflow testing and moreGain an in-depth understanding of Postman’s new and existing features, including Mock ServersKnow when and how to use Postman to create high-quality APIs for software and web appsBook DescriptionPostman 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.
What you will learnFind out what is involved in effective API testingLeverage Postman to improve the quality of you APIUse data-driven testing in Postman to create scalable API testsHow to create and use a Mock Server in PostmanVerify and improve the quality of an API using contract testingUnderstand the basic principles of security testingGet to grips with functional and non-functional testing of an APIDiscover how to use industry standards such as OpenAPI and mockingWho this book is forThe book is for software testing professionals and software developers looking to improve product and API quality through API test automation. You’ll also find this book useful if you have a basic understanding of APIs and want to build your skills for creating, testing, and documenting them. The book assumes beginner-level knowledge of JavaScript and API development.
Table of ContentsAPI Terminology and some different types of APIsPrinciples of API DesignOpen API SpecificationsConsiderations for good API test automationAuthorization OptionsCreating Test Validation ScriptsData Driven TestingWorkflow TestingRunning API Tests in CI with NewmanMonitoring APIs with PostmanTesting an existing APICreating and using a Mock Server in PostmanUsing Contract Testing to Verify the APIAPI Security TestingPerformance Testing an API
I have been using Postman for my work for a long time, but thanks to this book I realized that I was only exploiting it 10%!
Whether the APIs were developed by us, or whether you are debugging APIs developed by a third party instead, testing APIs is critically important. The thing that pleasantly surprised me about this book is that it condenses, in relatively few pages, a tremendous amount of essential information such that you can take 100% advantage of powerful (and free) software like Postman. In fact, the book has a very practical slant, with the essential theory in the first few pages and then immediately hands-on in the software.
Beware, however: this book is not a “simple” user's manual for Postman. On the contrary, the author started from scenarios that one normally faces during daily work to present the topics illustrated. And this is the thing I liked the most: as a programmer, I immediately found myself in the topics read in the book, I immediately found the solution to the same problems or questions I used to ask myself during the development of my APIs.
The topics covered are many and range from the simple ones like OpenAPI specifications and documentation to the more complex and advanced like mock servers, security, and performance.
✅I highly recommend this book, to testers of course, but also to developers: the notions learned become very useful both in the development phase of your own APIs and in the testing phase (and, to be honest, it also comes in very handy if you want to study third-party APIs... 😎)
Having received an early copy of "API Testing and Development with Postman," I found it to be a valuable resource, especially for beginners in API testing. As a Junior QA Engineer with some experience using Postman, I appreciated the clear and beginner-friendly approach to writing test scripts. The book also provides useful background on web APIs and development, though occasionally delving into tangents that could be more concise. Overall, it's a solid guide for anyone looking to enhance their skills in API testing with Postman.