HTTP Request Test Library.
Project description
HttpLibrary
Authors:
- Shiela Buitizon | email:shiela.buitizon@mnltechnology.com
- Joshua Kim Rivera | email:joshua.rivera@mnltechnology.com
Company: Spiralworks Technologies Inc.
Contents:
- Introduction
- Installation
- Usage
- Keyword Documentation
- Generating Local Documentation
- Execute Unit Test
Introduction
HttpLibrary is test library for web services and restful api.
Installation
Option 1
Install this project using pypi, run:
pip install rf-httplibrary
Option 2
With recent version of pip
, it is possible to install directly from GitHub repository. To Install latest source
from the master branch, use this command:
pip install git+https://github.com/MainSystemDev/rf-httplibrary.git
Usage
To use HttpLibrary in Robot Framework test(s), the library needs to
first be imported using the Library
setting as any other library.
*** Settings ***
Documentation Simple example using HttpLibrary
Library HttpLibrary
*** Test Cases ***
Test Case Sample One
New Http Session
Create Http Get Request ${url}
Add Http Request Parameter ${paramkey1} ${paramvalue1}
Add Http Request Parameter ${paramkey2} ${paramvalue2}
Invoke Http Request
Http Raise For Status
Close Http Session
Keyword Documentation
View the latest keyword documentation here for more information about this library.
Install dependecy in local virtual environment
pip install .
Generating Local Documentation
To Generate the keyword Documentation, simply run:
python -m robot.libdoc HttpLibrary docs/index.html
Where: docs.html is the output file. Note that the library must first be installed before generating a documentation.
Execute Unit Test
python -m unittest
python setup.py test
Install requirements-dev.txt in shell runner
This is for running pep8 style guide for python
sudo -H pip install -r requirements-dev.txt
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 Distributions
Built Distribution
File details
Details for the file rf_httplibrary-4.0a4-py3-none-any.whl
.
File metadata
- Download URL: rf_httplibrary-4.0a4-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfbcc844f95b1730f760a24fe5a18e9d6d12565f0f2ac19279f41bae7a93569d |
|
MD5 | 76bbbaaf015917d1cb40f7973bbac717 |
|
BLAKE2b-256 | 05b8d76886460df319c1b9fac29414c742e5d8c6f1145026a79e6810751fbfe4 |