Skip to main content

HTTP Request Test Library.

Project description

HttpLibrary

Authors:

Company: Spiralworks Technologies Inc.

Contents:

Introduction

HttpLibrary is test library for web services and restful api.

PyPI PyPI - Downloads PyPI - License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rf_httplibrary-4.0a4-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file rf_httplibrary-4.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for rf_httplibrary-4.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 dfbcc844f95b1730f760a24fe5a18e9d6d12565f0f2ac19279f41bae7a93569d
MD5 76bbbaaf015917d1cb40f7973bbac717
BLAKE2b-256 05b8d76886460df319c1b9fac29414c742e5d8c6f1145026a79e6810751fbfe4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page