Python API Automated Testing cover

Python API Automated Testing

Rating 3.4
Word count
63K words
Chapters
61
ISBN
9787121356872

Tags

Summary

This book departs from the traditional textbook approach. Starting from the goals to be achieved, it breaks the process of "handling HTTP interfaces with Python + MySQL" into individual knowledge points and then connects them. The book mainly introduces how to implement API automation testing with Python. Its main contents include API fundamentals, manual API testing, preparation before coding, using Python to operate MySQL databases, using Python to send HTTP requests, using Python to process HTTP response packets, using Python to export test data, getting started with API automation, and demonstrations of real API scenarios. This book is suitable for junior and intermediate test engineers, people interested in the Python language, and those who want to improve their technical skills.

This book is suitable for junior and intermediate test engineers, people interested in the Python language, and those who want to improve their technical skills.

Editor's review

Python API Automation Testing is a hands-on guide for software test engineers and developers, published by Publishing House of Electronics Industry, ISBN 9787121356872. Author Wang Haoran has extensive practical experience in software testing, which keeps the book from staying at the theoretical level and makes it focus on real-world application. The book explains in detail how to build an API automation testing framework using Python and related libraries (such as requests and pytest), covering everything from basic concepts to advanced techniques, including core topics such as API testing principles, data-driven testing and continuous integration. Its strengths are rich examples and clear steps, making it suitable for beginners to get started quickly, while also offering experienced testers a reference for optimizing testing processes. Readers should note, however, that given how fast technology changes, some tool versions may have been updated, so it is advisable to study alongside the latest official documentation. Overall, this is a recommended entry-to-intermediate read that helps readers systematically master the core skills of API automation testing.

Who it's for

A good fit for

  • Software testing beginners who want to systematically learn the basics of API automation testing
  • Engineers with manual testing experience who want to move into automated testing
  • Developers using Python who need to integrate testing
  • Technical staff responsible for building or maintaining testing frameworks in a team

Not a good fit for

  • Readers with no programming background at all and no exposure to Python
  • People concerned only with UI automation testing and not API testing

Reading tips

  1. Read the first few chapters first to build a foundation in Python and HTTP, then practice the examples hands-on
  2. Use the code examples in the book to reproduce and modify them in a local environment to deepen understanding
  3. Consult the appendix or online resources to update tool versions and keep pace with technological change

About the publisher

Publishing House of Electronics Industry China · Founded in 1982

The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.

Contents

  1. 版权信息
  2. 作者简介
  3. 测试馒头铺品牌介绍
  4. 内容简介
  5. 序
  6. 前言 本书整体设计思想
  7. 1 本书整体设计思想
  8. 1.1 为什么要做懂技术的测试人员
  9. 1.2 为什么选择这本书
  10. 1.3 为什么选择Python
  11. 1.4 本书能给你带来什么
  12. 1.5 自动化代码的设计思路
  13. 1.6 补充知识点
  14. 2 接口基础
  15. 2.1 什么是接口
  16. 2.2 接口的分类
  17. 2.3 HTTP接口
  18. 2.4 接口测试
  19. 2.5 接口实例
  20. 2.6 补充知识点
  21. 3 接口手工测试
  22. 3.1 HTTP接口工具
  23. 3.2 Fiddler工具的使用
  24. 3.3 接口手工测试的用例设计
  25. 3.4 补充知识点
  26. 4 编程前的准备
  27. 4.1 Python环境准备
  28. 4.2 准备本地MySQL服务
  29. 4.3 补充知识点
  30. 5 用Python操作MySQL数据库
  31. 5.1 提前工作
  32. 5.2 操作MySQL数据库
  33. 5.3 本章所涉及的Python语法
  34. 5.4 PyCharm使用基础
  35. 5.5 补充知识点
  36. 6 用Python发送HTTP请求
  37. 6.1 准备工作
  38. 6.2 发送HTTP请求实例
  39. 6.3 本章所涉及的Python语法
  40. 6.4 补充知识点
  41. 7 用Python处理HTTP返回包
  42. 7.1 提前工作
  43. 7.2 处理HTTP返回包实例
  44. 7.3 本章所涉及的Python语法
  45. 7.4 补充知识点
  46. 8 用Python导出测试数据
  47. 8.1 提前工作
  48. 8.2 用Python导出测试数据
  49. 8.3 整体业务流程图
  50. 8.4 补充知识点
  51. 9 接口自动化起航
  52. 9.1 提前工作
  53. 9.2 代码之外
  54. 9.3 接口自动化起航代码
  55. 9.4 代码操作步骤
  56. 9.5 补充知识点
  57. 10 实际接口场景演示
  58. 10.1 提前工作
  59. 10.2 接口举例
  60. 10.3 准备与执行
  61. 附录A 本书用到的Python代码清单

FAQ

How much programming experience does this book require?
At least basic Python syntax knowledge is recommended; familiarity with HTTP protocol concepts will make it easier to get started.
Can the examples in the book be used directly in real projects?
The examples provide a framework and approach, but they need to be adapted and extended to the requirements of specific projects.
What distinguishes this book from other similar titles?
It focuses on hands-on Python practice, building a testing framework from scratch, and suits readers who value practical ability.

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

About the author

王浩然 Author

Public information on Wang Haoran is limited. What can be confirmed is that the library holds two works by this author, covering the fields of programming design and industrial technology respectively. Among them, Python Interface Automation Testing addresses the practical needs of software testing, discussing how to use Python to carry out automated testing at the interface level; Inverter Application Technology belongs to the industrial technology field and focuses on the practical application of inverters. Judging from these two works, Wang Haoran's writing spans both information technology and industrial settings, with an emphasis on practical implementation and hands-on operation rather than abstract theoretical exposition, and is aimed mainly at engineers and technical personnel who need to put these methods to use. Since no clear records exist regarding dates of birth and death, nationality, or professional identity, no speculation is made here; the above remarks are confined to the subjects and orientation of the works.

More by the same author

Top rated in the same category