Package: robotframework-extendedrequestslibrary
IntroductionExtendedRequestsLibrary is an extended HTTP client library forRobot FrameworkwithOAuth2support that leverages therequestsproject,requests-oauthlibproject, andRequestsLibraryproject.More information about this library can be found in theKeyword Documentation.Example*** Settings ***LibraryExtendedRequestsLibrary*** Test Cases ***Post Request With Client CredentialsCreate Client OAuth2 Sessionclienthttps://tokenkeysecretbase_url=https://service${var} =Post Requestclient/endpointjson=${“key": "value"}Log${var}Delete All SessionsPost Request With PasswordCreate Password OAuth2 Sessionmemberhttps://tokenkeysecretusnpwdbase_url=https://service${var} =Post Requestmember/endpointjson=${“key": "value"}Log${var}
    &{files} =Create Dictionaryfile1=/path/to/a_file.extfile2=/path/to/another_file.ext${var} =Post Requestmember/endpointfiles=&{files}Log${var}Delete All SessionsInstallationUsingpipThe recommended installation method is usingpip:pip install robotframework-extendedrequestslibraryThe main benefit of usingpipis 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-extendedrequestslibraryNotice that using--upgradeabove 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==x.x.x
pip install --upgrade requests
pip install requests==x.x.xProxy configurationIf you are behind a proxy, you can use--proxycommand line option
or sethttp_proxyand/orhttps_proxyenvironment variables to
configurepipto use it. If you are behind an authenticating NTLM proxy,
you may want to consider installingCNTMLto handle communicating with it.For more information about--proxyoption and using pip with proxies
in general see:http://pip-installer.org/en/latest/usage.htmlhttp://stackoverflow.com/questions/9698557/how-to-use-pip-on-windows-behind-an-authenticating-proxyhttp://stackoverflow.com/questions/14149422/using-pip-behind-a-proxyManual installationIf 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.Make sure you haveRobot Framework installed.Download source distributions (*.tar.gz) for the library and its dependencies:https://pypi.python.org/pypi/robotframework-extendedrequestslibraryhttps://pypi.python.org/pypi/robotframework-requestslibraryhttps://pypi.python.org/pypi/requests-oauthlibhttps://pypi.python.org/pypi/requestsDownload PGP signatures (*.tar.gz.asc) for signed packages.Find each public key used to sign the package:gpg --keyserver pgp.mit.edu --search-keys D1406DE7Select the number from the list to import the public keyVerify the package against its PGP signature:gpg --verify robotframework-extendedrequestslibrary-x.x.x.tar.gz.asc robotframework-extendedrequestslibrary-x.x.x.tar.gzExtract each source distribution to a temporary location.Go to each created directory from the command line and install each project using:python setup.py installIf 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 Layoutdoc/Keyword documentationsrc/Python source codetest/Test filesutest/Python unit testUsageTo write tests with Robot Framework and ExtendedRequestsLibrary,
ExtendedRequestsLibrary must be imported into your Robot test suite.*** Settings ***LibraryExtendedRequestsLibrarySeeRobot Framework User Guidefor more information.More information about Robot Framework standard libraries and built-in tools
can be found in theRobot Framework Documentation.Building Keyword DocumentationTheKeyword Documentationcan be found online, if you need to generate the keyword documentation, run:make docRun Unit Tests, and Test Coverage ReportTest the testing library, talking about dogfooding, let’s run:make testContributingIf you would like to contribute code to Extended Requests Library project you can do so through GitHub by forking the repository and sending a pull request.When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Please also include appropriate test cases.Before your code can be accepted into the project you must also sign theExtended Requests Library CLA(Individual Contributor License Agreement).That’s it! Thank you for your contribution!LicenseCopyright (c) 2015, 2016 Richard Huang.This library is free software, licensed under:GNU Affero General Public License (AGPL-3.0).Documentation and other similar content are provided underCreative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.