Use the back-end interface testing tool Brief

Describes two I used the back-end testing tool

  1. IDEA comes Resful tool
    • Toolbar Tools-> HTTP Client-> Test RESTful Web Service, can be used.
    • Specific use
      interface
      1. Fill in the server host and path method [picture]
      The method of selecting 2.HTTP
      3. Fill in the required parameters of the interface
         used in the form of name-value of
      4.Request Body
         can select a local file upload test

In general, these can easily handle most simple back-end test, but some issues related to the presence of Request Body parts, such as file upload If you need a name, I did not find IDEA comes with tools It provides name-value of this form. So I started to use Postman.

  1. The basic use of Postman
    • It can be directly in the official website for free download.
    • At the beginning of use, it is recommended to register an account, you can create and share their own Collection team.
    • Before creating a new request, you can create a Collection, to save all interface requests related projects
    • Official create a reuqest, IDEA comes with a tool similar use.
      The same argument is a bond - the value of the form
    • Postman's Request Body can be used to upload a variety of formats. If you choose the Text file type, you can enter it in the Value column
      If you choose File file type, Select Files will appear, you can select a local file to upload.

If there is a wrong place to welcome advice.

Guess you like

Origin juejin.im/post/5e56485951882549652d5179