When learning interface testing, often because there is no actual interface to test and worry, here to teach you to write two interfaces for learning interface testing

1. Write a login interface

2. Run pyCharm

3. Use apiPOST to test the login interface

Enter the URL and parameter values. The access succeeds.

4. Check pyCharm to see if the access is working properly

5, in the preparation of a login to return the token direct access query interface

6. Run two interfaces, login and query

7. Use apiPOST for interface test of login and query

The login interface is first tested to obtain the returned token

Interface test for query using token value returned by login

8. Tools used

API authoring tools: python, pycharm, flask framework apipost

The interface test tool can be downloaded from www.apipost.cn