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 |
|
Set HTTP Host |
||
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)!
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.
Metadata
Release files for robotframework-httplibrary 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| robotframework-httplibrary-0.3.0.tar.gz | 7.7 kB | Details |
Release files / robotframework-httplibrary-0.3.0.tar.gz
| Download URL | robotframework-httplibrary-0.3.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
069022b40461dc08914c43cfab50fac036089c8a570ed340ff5e77de0c9906fe
|
|
BLAKE2b-256 checksum How to use checksums |
40efb341ada8aa56e0ada361e828e8a4c9417550ae978596b1ebd21584b9d150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |