Can Postman be used like this? Summary and sharing of practical skills, enabling API testing and
In the process of software development, we often develop or integrate API interfaces and encounter a variety of magical problems:
Different clients, some normal, some calls failed?
There's something wrong with the test, but the developer says it's okay?
Is the development environment, test environment, and integration environment inconsistent?
When integrating a third party, there is no documentation or it is too simple to know how to call it?
When there is something wrong with the third-party interface, the other party says that the calling method is incorrect?
.
There are always more methods than problems, but the good thing is that there are artifacts. Postman is a commonly used API debugging tool, supports a variety of request methods, easy to use, and can be saved as a json file, support import and export, facilitate team cooperation.
With Postman enabling, API testing and integration becomes so simple:
Can Postman be called successfully?
Yes: please check the code by the caller. What are the parameters or where the calling method is incorrect?
No: please provide the provider to fix the problem and provide the exported json file after the Postman test has passed.
Summarize and share the installation and use of Postman, and introduce the test verification of environment variables and request return results, and finally describe the use of Collection and import and export, how to automate the test of API.
Example script: https://github.com/jextop/postman.git
Online course: https://edu.51cto.com/course/20949.html
Installation and invocation request method of Postman
Setting and use of environment variables
Request the test verification of the returned result
The skills of using Collection
Automated test API interface