Robot Framework keywords for HTTP requests
Project description
robotframework-httplibrary
robotframework-httplibrary is a Robot Framework test library for all your HTTP needs. It uses livetest (which, in turn uses the famous webtest library underneath).
Installation
You can install robotframework-httplibrary via pip:
pip install --upgrade robotframework-httplibrary
Usage
API documentation can be found at http://peritus.github.com/robotframework-httplibrary/, here is an example on how to use it:
Setting |
Value |
---|---|
Library |
HttpLibrary.HTTP |
Test Case |
Action |
Argument |
---|---|---|
Example |
||
[Documentation] |
Follows a Redirect |
|
Create HTTP Context |
||
GET |
/302 |
|
Response Status Code Should Equal |
302 |
|
Follow Response |
||
Response Body Should Contain |
generating different HTTP codes |
You can view a report and a log of this test executed that looks like this:
Compatibility
This library is only tested on CPython. It might work on Jython, not sure.
Development
If you want to hack on this library itself, this should get you started:
# bootstrap development environment git clone https://github.com/peritus/robotframework-httplibrary.git cd robotframework-httplibrary/ python bootstrap.py ./bin/buildout # run tests ./bin/robotframework tests/
I’m very happy about patches, pull-requests and API-discussions (as this is mostly a wrapper supposed to have a nice API)!
Changelog
v0.3.3
add HTTPS support
add ‘Stringify JSON keyword’
implicitly set correct ‘Host’ header
License
Beerware: If we meet some day, and you think this stuff is worth it (or need a more serious license), you can buy me a beer in return.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for robotframework-httplibrary-0.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7f6e37363705e0a30f4ff3a2f103ae82c97928cd25ed1928857c022ef3c06e5 |
|
MD5 | 6c2946bc79105a3eace4c39f38e34559 |
|
BLAKE2b-256 | 18a22875fae23c91cd592f604ad74a2d8140bdf0a4790aec2459e7eba72caa75 |