Ana Liza Bongat
Ana Liza Bongat

Reputation: 55

RequestsLibrary - No keyword with name 'POST On Session' found

I'm getting "No keyword with name 'POST On Session' found." but I've already installed requests and requestslibrary. Can you advise?

*** Settings ***
Library               Collections
Library               RequestsLibrary

Suite Setup           Create Session    jsonplaceholder    http://128.199.203.18/api/v1

*** Test cases **
Login
    &{data} =    Create Dictionary    [email protected]    password=analiza123
    ${resp}=  POST On Session  jsonplaceholder     /login    json=${data}  expected_status=any

Upvotes: 2

Views: 3623

Answers (1)

Bob Meliev
Bob Meliev

Reputation: 1198

Run this command to install library

pip install --upgrade robotframework-requests

Then run your test again.

Upvotes: 4

Related Questions