This is the code repository for API Testing and Development with Postman, published by Packt.
A practical guide to creating, testing, and managing APIs for automated software testing
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.
This book covers the following exciting features:
- Find out what is involved in effective API testing
- Use Postman to improve the quality of your APIs
- Understand what a well-designed API looks like
- Become well-versed with API terminology, including the different types of APIs
- Get to grips with performing functional and non-functional testing of an API
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter06.
The code will look like the following:
pm.test("Body matches string", function () {
pm.expect(pm.response.text()).to.include("string_you_want_to_search");
});
Following is what you need for this book: The book is for software testing professionals and software developers looking to improve product and API quality through API test automation. You will find this book useful if understand APIs and want to build your skills for creating, testing, and documenting APIs. The book assumes beginner-level knowledge of JavaScript and API development.
With the following software and hardware list you can run all code files present in the book (Chapter 1-14).
Chapter | Software required | OS required |
---|---|---|
1-14 | Postman v8.0.7 | Windows, Mac OS X, and Linux (Any) |
5 | Burp Suite Community Edition v2021.2.1 | Windows, Mac OS X, and Linux (Any) |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
- Page 54 (bullet point 5): Name the API something such as Swagger Pet Store should be This will automatically import the API and create a collection. Click on Confirm and Close.
- Page 55 (Paragraph 1 including figure 3.4): Should be ignored and removed.
- Page 55(Paragraph 2, bullet point 2): With the Generate collection from schema option... should be Since Postman has already created a collection, leave the Use and Existing collection option selected, and click on Select Collection and Continue
- Page 55 (Paragraph 2, bullet point 3): Should be ignored and removed.
- Page 57 (bullet point 6): choose Swagger Pet Store API should be chose Swagger Petstore
- Page 58 (step 1 near the top): Make sure you have Swagger Pet Store API selected should be Make sure you have Swagger Petstore selected
Dave Westerveld is a Senior Software Test developer. He has worked for several years as a software tester and has been involved in numerous projects involving test automation. He is an API testing expert. He was part of a team that developed new APIs and worked on automation projects for API tests as well. He has published various well-received video courses. He is passionate about sharing his knowledge and expertise that help testers stay relevant in the changing world of software testing.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.