From the interface test beginner’s notes, write wrong place we give more advice oh

1. Interface test is completed through the design of input and expected output test verification, you have mastered the test case design method and other test basic skills, here is still useful;

2. Interface testing is a combination of technical knowledge and business knowledge, can better improve your own technical strength, let those who say we are “dot workers” early shut up;

3. Interface test is also a functional test, which is different from interface test. It only interacts with us, not the interface designed by the developer, but the testing tool or code.

Postman interface test tool

Download postman at www.postman.com/

Download and install directly, open and use

1. The Postman V8.7.0 interface is introduced

Left sidebar:

Collections: Collections of requests, which are grouped together to form a collection of requests

APIs: Manage the life cycle of our APIs

Environments: Environment variables. You can set global environment variables, create Environments, and add environment variables

Mock Servers: A tool that mocks a server and returns custom return values for a particular interface

Monitors interface: PI uptime, responsiveness, and correctness, providing detailed reports of monitoring results

History: History request data of all debugged requests

Top sidebar:

New: creates a request, collection, and environment.

Import: can directly Import postman request set, request file.

Table introduction:

Request methods: The more common ones are POST and GET

URL: The requested URL

Params: Request parameters, input parameters, and value are displayed in the URL

Authorization: supports multiple types of Authorization

Header: Request Header

Body: request Body. Parameters entered in form-data will not be displayed in the URL, and can be entered in the file. If you need an image parameter, you can enter it here

Pre-request-script: request Script that can be executed before the request is initiated

Tests: Interface tests, scripts performed after the request is completed

Setting: set

Response content:

Body: Indicates the response content, which can be presented in JSON, HTML, XML, or text formats

Cookie: The Cookie sent by the server is visible in the Cookie TAB

Headers: The response Headers are displayed as key-value pairs under the Headers TAB

Test Results: Indicates the Test Results of the Test program

Two, postman simple use

  • Select request method
  • Enter the REQUESTED URL
  • Select the Body
  • Choose the form data
  • Input request parameters
  • Click on the send

The bottom content is the content of the request response