Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/peterservice-rnd/robotframework-requestschecker

RobotFramework Requests Checker Library
https://github.com/peterservice-rnd/robotframework-requestschecker

automation autotest http requests response-code robotframework testing

Last synced: 3 months ago
JSON representation

RobotFramework Requests Checker Library

Awesome Lists containing this project

README

        

RobotFramework Requests Checker Library
=======================================

|Build Status|

Short Description
-----------------

`Robot Framework`_ library for checking HTTP response status code, based on `Requests`_ library.

Installation
------------

::

pip install robotframework-requestschecker

Documentation
-------------

See keyword documentation for robotframework-requestschecker library in
folder ``docs``.

Example
-------
+---------------+---------------------------------------+-----------------------------+------------------------+----------+
| Test cases | Action | Argument | Argument | Argument |
+===============+=======================================+=============================+========================+==========+
| Simple Test | RequestsLibrary.Create session | Alias | http://www.example.com | |
+---------------+---------------------------------------+-----------------------------+------------------------+----------+
| | ${response}= | RequestsLibrary.Get request | Alias | / |
+---------------+---------------------------------------+-----------------------------+------------------------+----------+
| | RequestsChecker.Check Response Status | ${response} | 204 | |
+---------------+---------------------------------------+-----------------------------+------------------------+----------+

License
-------

Apache License 2.0

.. _Robot Framework: http://www.robotframework.org
.. _Requests: http://docs.python-requests.org/en/latest

.. |Build Status| image:: https://travis-ci.org/peterservice-rnd/robotframework-requestschecker.svg?branch=master
:target: https://travis-ci.org/peterservice-rnd/robotframework-requestschecker