我正在使用 Robot 访问 HTTP 服务。但它向我展示了以下问题
未找到名称为“创建会话”的关键字。
导入测试库“RequestsLibrary”失败:ImportError:没有名为 RequestsLibrary Traceback 的模块(最后一次调用):
我已经安装了 RequestsLibrary。我的TC是:
*** Settings ***
Library Collections
Library String
#Library RequestsLibrary
Library OperatingSystem
Library ExtendedRequestsLibrary
Suite Teardown Delete All Sessions
*** Test Cases ***
Get Requests
[Tags] get
Create Session google http://www.google.com
# Create Session github https://api.github.com
${resp}= Get google /
Should Be Equal As Strings ${resp.status_code} 200
${resp}= Get github /users/bulkan
Should Be Equal As Strings ${resp.status_code} 200
Dictionary Should Contain Value ${resp.json()} Bulkan Evcimen