API Testing and Development with Postman - Second Edition: API creation, testing, debugging, and management made easy

Westerveld, Dave

  • 出版商: Packt Publishing
  • 出版日期: 2024-06-24
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 358
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1804617903
  • ISBN-13: 9781804617908
  • 海外代購書籍(需單獨結帳)

商品描述

Avoid common API coding pitfalls and make test automation effortless with Postman and the Newman CLI

Key Features:

- Learn the tenets of effective API testing and design with workflow testing and more

- Gain an in-depth understanding of Postman's new and existing features, including Mock Servers

- Know when and how to use Postman to create high-quality APIs for software and web apps

Book Description:

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.

What You Will Learn:

- Find out what is involved in effective API testing

- Leverage Postman to improve the quality of you API

- Use data-driven testing in Postman to create scalable API tests

- How to create and use a Mock Server in Postman

- Verify and improve the quality of an API using contract testing

- Understand the basic principles of security testing

- Get to grips with functional and non-functional testing of an API

- Discover how to use industry standards such as OpenAPI and mocking

Who this book is for:

The 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 Contents

- API Terminology and some different types of APIs

- Principles of API Design

- Open API Specifications

- Considerations for good API test automation

- Authorization Options

- Creating Test Validation Scripts

- Data Driven Testing

- Workflow Testing

- Running API Tests in CI with Newman

- Monitoring APIs with Postman

- Testing an existing API

- Creating and using a Mock Server in Postman

- Using Contract Testing to Verify the API

- API Security Testing

- Performance Testing an API

商品描述(中文翻譯)

避免常見的 API 編碼陷阱,並利用 Postman 和 Newman CLI 使測試自動化變得輕而易舉

主要特點:
- 學習有效的 API 測試和設計原則,包括工作流程測試等
- 深入了解 Postman 的新功能和現有功能,包括 Mock Servers
- 知道何時以及如何使用 Postman 為軟體和網頁應用程式創建高品質的 API

書籍描述:
Postman 是探索和測試網路 API 的寶貴工具,幫助測試人員和開發人員了解 API 的運作方式。使用 Postman,您可以為任何 API 創建有效的測試自動化,而本指南將幫助您釋放其全部潛力。

《API 測試與開發使用 Postman》是一本對於任何想要創建高品質 API 但不確定如何進行的人來說,都是無價的資源。本指南將幫助您釋放 Postman 測試自動化功能的全部潛力。

理論與實際案例的結合將幫助您學習如何使用 Postman 創建設計良好、文檔齊全且經過測試的 API。在熟悉理論後,您將進入實作專案,學習如何為現有 API 添加測試自動化。您還將學習 Postman 的一些新功能,這些功能可以幫助您避免引入錯誤。

這本第二版的全面更新版包含了有關工作流程測試、創建和使用 Mock Servers、API 安全測試和性能測試的新章節。本版中的新資訊和擴展內容將幫助您未來保護您的 API。

在本書結束時,您將能夠使用 Postman 為您正在處理的任何 API 設置和運行 API 測試。

您將學到的內容:
- 了解有效的 API 測試涉及哪些內容
- 利用 Postman 改善您的 API 質量
- 在 Postman 中使用數據驅動測試創建可擴展的 API 測試
- 如何在 Postman 中創建和使用 Mock Server
- 使用合約測試驗證和改善 API 的質量
- 理解安全測試的基本原則
- 熟悉 API 的功能性和非功能性測試
- 探索如何使用行業標準,如 OpenAPI 和 Mocking

本書適合對象:
本書適合希望通過 API 測試自動化提高產品和 API 質量的軟體測試專業人員和軟體開發人員。如果您對 API 有基本了解並希望提升創建、測試和文檔編寫的技能,這本書也將對您有所幫助。本書假設讀者具備初級的 JavaScript 和 API 開發知識。

目錄:
- API 術語及不同類型的 API
- API 設計原則
- 開放 API 規範
- 良好 API 測試自動化的考量
- 授權選項
- 創建測試驗證腳本
- 數據驅動測試
- 工作流程測試
- 使用 Newman 在 CI 中運行 API 測試
- 使用 Postman 監控 API
- 測試現有 API
- 在 Postman 中創建和使用 Mock Server
- 使用合約測試驗證 API
- API 安全測試
- API 性能測試