【发布时间】:2021-05-05 14:35:37
【问题描述】:
我正在尝试使用 Robot Framework 进行 API 测试,但我遇到了错误
找不到名称为“createsession mysession”的关键字。请任何机构帮助解决此错误。
我已经安装了下面的库。 机器人框架,请求,机器人框架请求,机器人框架 json 库
下面是相同的代码
===============================================================================================
*** Settings ***
Library RequestLibrary
*** Variables ***
${baseurl} http://demoqa.com/utilities/
${endpoint} weather/city/
*** Keywords ***
*** Test Cases ***
TestCaseone
createsession mysession ${baseurl}
${response}= Get Request mysession ${endpoint}/bangalore
log to console ${response.status.code}
log to console ${response.status.body]
log to console ${response.header}
【问题讨论】:
标签: robotframework robotframework-ide robotframework-sshlibrary