Skip to main content

HTTP client library for Robot Framework with OAuth2 support

Project description

Introduction

ExtendedRequestsLibrary is a HTTP client library for Robot Framework with OAuth2 support that leverages the requests project, requests-oauthlib project, and RequestsLibrary project.

More information about this library can be found in the Keyword Documentation.

Installation

Using pip

The recommended installation method is using pip:

pip install robotframework-extendedrequestslibrary

The main benefit of using pip is that it automatically installs all dependencies needed by the library. Other nice features are easy upgrading and support for un-installation:

pip install --upgrade robotframework-extendedrequestslibrary
pip uninstall robotframework-extendedrequestslibrary

Notice that using --upgrade above updates both the library and all its dependencies to the latest version. If you want, you can also install a specific version or upgrade only the requests project used by the library:

pip install robotframework-extendedrequestslibrary==0.1.7
pip install --upgrade requests
pip install requests==2.7.0

Proxy configuration

If you are behind a proxy, you can use --proxy command line option or set http_proxy and/or https_proxy environment variables to configure pip to use it. If you are behind an authenticating NTLM proxy, you may want to consider installing CNTML to handle communicating with it.

For more information about --proxy option and using pip with proxies in general see:

Manual installation

If you do not have network connection or cannot make proxy to work, you need to resort to manual installation. This requires installing both the library and its dependencies yourself.

gpg --keyserver pgp.mit.edu --search-keys D1406DE7
  • Select the number from the list to import the public key

  • Verify the package against its PGP signature:

gpg --verify robotframework-extendedrequestslibrary-0.1.7.tar.gz.asc robotframework-extendedrequestslibrary-0.1.7.tar.gz
  • Extract each source distribution to a temporary location.

  • Go to each created directory from the command line and install each project using:

python setup.py install

If you are on Windows, and there are Windows installers available for certain projects, you can use them instead of source distributions. Just download 32bit or 64bit installer depending on your system, double-click it, and follow the instructions.

Directory Layout

doc/

Keyword documentation

src/

Python source code

Usage

To write tests with Robot Framework and ExtendedRequestsLibrary, ExtendedRequestsLibrary must be imported into your Robot test suite. See Robot Framework User Guide for more information.

Building Keyword Documentation

The Keyword Documentation can be found online, if you need to generate the keyword documentation, run:

make documentation

License

Copyright (c) 2015 Richard Huang.

This library is free software, licensed under: GNU Affero General Public License (AGPL-3.0).

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

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