Installation and use of Postman+Postman interceptor-solution to synchronize chrome browser login status to postman for dependent interface testing

Problem introduction: When doing interface testing, the interface with dependencies is often difficult to test (such as login status information), and it is necessary to continuously capture the value of the token in the cookie and pass it in for authentication. The solution to this problem is to introduce the interceptor plug-in, which automatically brings the login information in the cookie into postman.

1. Postman installation:

Open chrome://extensions/ and drag the downloaded postman plugin into it.

2. Postman interceptor installation:

Open chrome://extensions/ and drag the downloaded Postman interceptor plugin into it.

3. After the installation of Postman interceptor is completed, an icon will be displayed in the upper right corner of the chrome browser, click to open it.

4. Open postman and open the interceptor plugin

5. If you log in to the test account in the chrome browser, and then use postman to test the interface that depends on the login status, there is no need for verification, because the interceptor has automatically synchronized the login status in the browser to postman.

 

Problems encountered during the process:

1. Install the Postman interceptor first, and then install the postman, and the result is always in the loading state when sending the request.

Solution: uninstall the two plugins, be sure to install postman first, and then install Postman interceptor

2. After the installation is completed, the interface test has been in the loading state. This may be caused by the inconsistent versions of postman and interceptor. This version must be consistent before it can be used.

Solution: Here are the installation packages of postman and interceptor available for pro-testing.

Link: https://pan.baidu.com/s/1eofcGmsfrAAnK8oZr-WW5Q Password: 85ia

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325170151&siteId=291194637