First of all, before the interface test, analyze how to send the interface request or what does the interface request send contain? The content of HTTP request includes: request line (protocol version, URL, request method), request header (host, Content-Type,Accept, etc.), request body (parameter data needed to send request, such as login: user and password, post request contains this part, GET request does not contain this part).

What does it take to send an interface request?

(1) Requested URL

(2) The requested resource address URI

(3) Request header

(4) Request body

(5) Send requests

After sending the request, you need to compare the expected result with the actual result, as follows

(6) Assertion


Both Python language and Jmeter and Postman are used to send requests or Run after data is prepared, while RF needs to find the address of the server or domain name (establish a session first), and then send a request, as follows: