Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Robot Framework keyword library wrapper for requests
tag: v0.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/RequestsLibrary
tests
.gitignore
MANIFEST.in
README.md
setup.py

README.md

RequestsLibrary is a Robot Framework test library that uses the Requests HTTP client.

Usage

You need to have requests installed

   pip install -U requests

Now install robotframework-requests

```pip install -U robotframework-requests


<table border=1>
    <tr>
        <td>Settings</td>
    </tr>
    <tr>
        <td> Library </td>
        <td> Collections </td>
    </tr>

    <tr>
        <td> Library </td>
        <td> RequestsLibrary</td>
    </tr>

    <tr>
        <td>Test Cases</td>
    </tr>

    <tr>
        <td>Get Requests</td>
    </tr>

    <tr>
        <td></td>
        <td>Create Session</td>
        <td>github</td>
        <td>http://github.com/api/v2/json</td>
    </tr>
    <tr>
        <td></td>
        <td>Create Session</td>
        <td>google</td>
        <td>http://www.google.com</td>
    </tr>
    <tr>
        <td></td>
        <td>${resp}=</td>
        <td>Get</td>
        <td>github</td>
        <td>/</td>
    </tr>
    <tr>
        <td></td>
        <td>Should Be Equal As Strings</td>
        <td>${resp.status_code}</td>
        <td>200</td>
    </tr>

    <tr>
        <td></td>
        <td>${resp}=</td>
        <td>Get</td>
        <td>github</td>
        <td>/user/search/bulkan</td>

    </tr>

    <tr>
        <td></td>
        <td>Should Be Equal As Strings</td>
        <td>${resp.status_code}</td>
        <td>200</td>
    </tr>
    <tr>
        <td></td>
        <td>${jsondata}=</td>
        <td>To JSON</td>
        <td>${resp.content}</td>
    </tr>

    <tr>
        <td></td>
        <td>Dictionary Should Contain Value</td>
        <td>${jsondata['users'][0]}</td>
        <td>Bulkan Savun Evcimen</td>
    </tr>
</table>
Something went wrong with that request. Please try again.