使用 RequestsLibrary 做准备
下载安装 Requests
- pip install requests
requests 接口库
- https://cn.python-requests.org/zh_CN/latest/
安装 robotframework - requests
- pip install robotframework-requests
github 地址:https://github.com/MarketSquare/robotframework-requests
*** Settings ***
Library RequestsLibrary
*** Test Cases ***
case01
Create Session httpbin http://httpbin.org/
${get} Get Request httpbin /
RequestsLibrary 常用关键字
-
Create Client Cert Session
-
Create Custom Session
-
Create Digest Session
-
Create Ntlm Session
-
Create Session
-
Session Exists
-
Delete All Session
-
Update Session
-
To Json
-
Get Request
-
Post Request
-
Put Re