How to use REST library in Robot Framework?

I found another library which can do http calls and even parse json. Plus it's well documented http://peritus.github.com/robotframework-httplibrary/HttpLibrary.html.


That library seems to be poorly documented. Perhaps you should take a look at https://github.com/bulkan/robotframework-requests, which seems to be documented and maintained.


REST Library for Robot Framework is not developed since 2009 (see changes).

Robot Framework official page references several HTTP level testing libraries, as for example:

  • robotframework-requests - Development is active and uses Requests HTTP python library.

    Example Usage:

    Grab Avatar Url
             Create Session    github    https://api.github.com     
      ${resp}=
        ...  Get Request       github    /users/jandias
             Should Be Equal As Strings
               ...             ${resp.status_code}  200     
             Dictionary Should Contain Key
               ...             ${resp.json()}       avatar_url
    
  • robotframework-httplibrary - Uses WebTest (with livetest) python library...