Python 请求requests
*** Settings *** Documentation Suite description Library RequestsLibrary *** Variables *** *** Keywords *** Call Get Request [Arguments] ${headers} ${parameters} ${url} ${apiPath} ${cookies} Create Session event ${url} ${response} Get Request event ${apiPath} params=${parameters} headers=${headers} ${reult} to json ${response.content} log ${reult} [Return] ${response} Call Post Request [Arguments] ${headers} ${parameters} ${url} ${apiPath} ${cookies} Create Session event ${url} ${response} Post Request event ${apiPath} params=${parameters} headers=${headers} ${reult} to json ${response.content} log ${reult}seatPlan1_1 [Return] ${response} Call Put Request [Arguments] ${headers} ${parameters} ${url} ${apiPath} ${cookies} Create Session event ${url} cookies=${cookies} ${response} Put Request event ${apiPath} params=${parameters} headers=${headers} ${reult} to json ${response.content} log ${reult} [Return] ${response} Call Delete Request [Arguments] ${headers} ${parameters} ${url} ${apiPath} ${cookies} Create Session event ${url} ${response} Delete Request event ${apiPath} params=${parameters} headers=${headers} ${reult} to json ${response.content} log ${reult} [Return] ${response} Call Post JSON Request [Arguments] ${headers} ${parameters} ${url} ${apiPath} ${cookies} Create Session event ${url} ${response} Post Request event ${apiPath} data=${parameters} headers=${headers} ${reult} to json ${response.content} log ${reult} [Return] ${response}
![](https://images.cnblogs.com/cnblogs_com/qianjinyan/910455/o_jasmine%20love.gif)