Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Can Postman be used like this? Summary and sharing of practical skills, enabling API testing and

Shulou Source: shulou.com Published: 2022-06-03 07:43:14 11月09日 Update

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

Tags: Tests problems methods environment development interfaces variables files third parties results support automation validation techniques differences consistency success magic things code Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MariaDB Docker Shulou Information NVidia