No keyword with name 'create session' found

1,327 views
Skip to first unread message

Sheetal Shahare

unread,
Feb 5, 2021, 12:33:33 AM2/5/21
to robotframework-users
I am working on Robotframework  with rest api 
I have installed  robotframework-requests 

I dont see any error with the api keywords when calling- also able to find keyword defination when i click on "create session"

but not sure why i am getting this error "No keyword with name 'create session' found"  when i execute the robot file
code is very simple.
I have attached  screenshots for the reference 

Test.robot

*** Settings *** 
Library   RequestLibrary
Library  Collections

*** Variables ***
base_url     https://www.google.com

 *** Test Cases *** 
Test to verify post request
     user sends post request

*** Keyword ***
user sends post request
        Create Session    mysession    ${base_url}
        ${response} =   get on session    mysession      /abc


fail.jpg

Sheetal Shahare

unread,
Feb 5, 2021, 12:35:55 AM2/5/21
to robotframework-users
tcfail.jpg

Ed Manlove

unread,
Feb 5, 2021, 8:58:11 AM2/5/21
to sheetal...@gmail.com, robotframework-users

Looks like an error in the library import. That should be RequestsLibrary, that is Requests with an 's'.

I would look at the top of your execution output to see if any errors are there. It should show ou there an import error and it couldn't find the RequestLibrary.

Ed

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/f19bcc86-46bb-421f-b8bd-4366d44dfbfcn%40googlegroups.com.

Sheetal Shahare

unread,
Feb 7, 2021, 8:18:41 PM2/7/21
to robotframework-users
Hi Devp,

When i run the robot file i get the error  as "module chardet has no attribute version"
Please find the attached screenshots

Not sure where am I going wrong. 
IMG-8086.jpg
chardet_error.jpg
Reply all
Reply to author
Forward
0 new messages