First, how to use a postman do interface testing notes

First, what is the interface testing

The front end (client): Android, ios, web

Back-end (server): java, js, css

Interface Test i.e. functional test interface is used to connect the client and server, the data returned is generic interface format json

 

Second, the composition of the interface

url

Request parameter

Request method

 

Three, get and post requests difference

①get requests than post request Security (now almost no difference)

②get request parameters have length restrictions, post request is not (now almost no difference)

③get no request body, url parameters are placed inside; POST request body parameters on the inside

 

Composed of four, http request

1, get request is composed as follows:

url

Request method

Request header (header): General request header which put some additional information, such as cookie, use what browsers

2, post request is composed as follows:

url

Request method

Request header (header): General request header which put some additional information, such as cookie, use what browsers

Blank line

Request body (body)

 

Common status code five, http request

200 # 2 request was successful

404 # 4 represents a request sent by a client in question

300 # 3 for redirection

# 500, 502 server has a problem

 

Six difference, cookie and session of

1, cookie: stored in a local key-value pair

2, session: a key stored in the service side of

 

Guess you like

Origin www.cnblogs.com/cocomoly/p/11461520.html