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.

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

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-3.0a2-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

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