It has a graphical user interface (GUI) and can be used in platforms like Linux, Windows and Mac. Postman has the feature of sending and observing the Hypertext Transfer Protocol (HTTP) requests and responses. It can be used to design, document, verify, create, and change APIs. It is a tool for testing the software of an API. Postman was designed in the year 2012 by software developer and entrepreneur Abhinav Asthana to make API development and testing straightforward. We require an API whenever we access an application like checking news over the phone, Facebook, and so on. Thus, an API is a collection of agreements, functions, and tools that an application can provide to its users for successful communication with another application. API acts like an interface between a couple of applications and establishes a connection between them. For the interface test of other scenarios, you can ignore me.Postman is an Application Programming Interface (API) testing tool. summaryįor the scenarios that really need to obtain web cookies to complete the interface test, the above methods have certain convenience, and it is also necessary to use my methods. But… It’s been more than two years since this petition was posted, and just hours to a few days before I expressed my request, people have been petitioning one after another, so I don’t know if it will be true. If you really want postman to add the above functions to their desktop version, you can go to their official GitHub issues to petition, and they are collecting your opinions. On the other hand, considering that Chrome browser will stop supporting chrome apps in the near future, it may not last long. Note: Interceptor feature is supported only in our Postman Chrome Apps and is not available in Postman Desktop Apps at the moment. Compared with the desktop version, the function of this version is naturally less. Therefore, if you want to use the above functions, you can only install the postman chrome app back. Unfortunately, according to the official instructions, the cookie sharing of postman interceptor can’t support the independently installed desktop version (downloaded from the official rather than from the chrome application market). In this way, we can easily get the network requests we need to test directly in postman, instead of filling in parameters by ourselves. Bonus of postman interceptorĪnother thing about postman interceptor is that its Request CaptureIt supports capturing the request records in the Chrome browser and automatically syncing them to the postman chrome app. Yes, because Chrome has exited the login, postman will lose the login status naturally, which means that the cookies on both sides are synchronized. ![]() Let’s log out from GitHub first, or the request just now. That is to say, at this time, although we didn’t make special cookie settings for postman, the login state of its request was verified by the server, and the cookie sharing was successful! What if you log out of the browser at this time? directly simulate the request notification interface in postman chrome app Log in to GitHub website normally in Chrome browser (there is nothing to demonstrate in this step) IV. Start postman, and open chrome Interceptor at the small satellite icon in the upper right cornerģ. confirmation Postman InterceptorPlug in installed successfully (as shown in the figure)Ģ. Let’s take GitHub as an example to demonstrate how to share cookies. I only post the screenshot of the official software interface. Please install the following tools by yourself. Combined with the tools introduced in this article, you can share cookies seamlessly between the postman chrome app (why is it emphasized to be postman chrome app, which will be explained at the end of this article) and the Chrome browser, and this sharing process is transparent to users. ![]() However, sometimes the interface test needs to be prepared with login state or other state data, which often exists in the browser cookie. ![]() In the interface test, everyone’s favorite tool list, there must be postman. As a web engineer, the most familiar daily work is the background interface development and joint debugging test.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |