作为其中的一部分,我正在尝试使用 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}