Robot Framework Requests Library

0.9.7 · active · verified Sat Apr 11

robotframework-requests is a Robot Framework keyword library that wraps the popular Python Requests library, providing HTTP API testing functionalities. It is actively developed, with a stable `0.9.x` series and an ongoing `1.0aX` pre-release series introducing significant changes and new features.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates a basic GET request to a public API using sessionless keywords (available since v0.9). It retrieves a post, asserts the HTTP status code, and verifies a specific field in the JSON response.

*** Settings ***
Library    RequestsLibrary

*** Test Cases ***
Quick Get Request Example
    ${response}=    GET    https://jsonplaceholder.typicode.com/posts/1
    Status Should Be    200    ${response}
    Should Be Equal As Strings    1    ${response.json()}[id]
    Log To Console    Response Body: ${response.json()}

view raw JSON →