Postman ++ code associated interface test python

Postman

  • Interface as follows:

 

  • Development to provide interface documentation, the document explicitly request mode, the interface names, parameter names, parameter constraints:
    • Request mode: POST
    • Interface Name: register 
    • Interface parameters:
  • Postman tool, with POST request transmission, receiving a request with a get, otherwise do not use nearly
  • The results returned can refer to the interface documentation to verify or correct development consulting
  • Batch interface test, if needs to obtain large amounts of data, it is best to use batch interfaces, but the amount of data can not be too large, and therefore need to debug the maximum to prevent excessive amount of data leads to memory is not enough
  • After the capture can be repeated request for an interface, if only allowed to request certain business processes once but do not limit, so it is easy lead to repeated requests Bug
  • Example: registered users on your site

Python code associated

  • First need pip install requests manner desired in the package to the python, json, os, mounted in the same manner hashlib
  • Postman can be tidied interface information is added to the Python code

Reference Documents - thank - Mr. Wu - Glory Road 

Guess you like

Origin blog.csdn.net/chang_jinling/article/details/81134854