I am trying to do API testing with Robot Framework as part of that,i am getting below error
No keyword with name 'createsession mysession' found.Can any body please help how to resolve this error.
I have installed below libraries. robotframework,request,robotframework-request,robotframework-jsonlibrary
Below is the code for the same
===============================================================================================
*** 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}
Here's your code which I revised or edited Your issue was just space hence ${baseurl} was not being recognised. Just remember to use TAB instead of space with the robotframework and inspect API to use actual words that are part of the API response.