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.

Files for rf-httplibrary, version 3.0a4
Filename, size File type Python version Upload date Hashes
Filename, size rf_httplibrary-3.0a4-py3-none-any.whl (13.1 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page