Skip to main content

Robot Framework wrapper for faker, a fake test data generator

Project description

robotframework-faker
====================

.. image:: https://travis-ci.org/guykisel/robotframework-faker.svg?branch=master
:target: https://pypi.python.org/pypi/robotframework-faker
.. image:: https://pypip.in/v/robotframework-faker/badge.png
:target: https://pypi.python.org/pypi/robotframework-faker
.. image:: https://pypip.in/d/robotframework-faker/badge.png
:target: https://pypi.python.org/pypi/robotframework-faker
.. image:: https://pypip.in/license/robotframework-faker/badge.png
:target: https://pypi.python.org/pypi/robotframework-faker

Robot Framework keyword library wrapper for
`Faker <https://github.com/joke2k/faker>`__.

This module allows easy use of Faker's random test data generation in
Robot Framework. I hate using static test data, because inevitably the
system under test evolves to pass the tests without necessarily solving
the root cause of bugs.

Any docstrings Faker provides are passed through to Robot Framework, so
they're available in RIDE and in keyword documentation generated via
libdoc.

For more information on Robot Framework please visit `the Robot
Framework homepage! <http://robotframework.org/>`__

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

``pip install robotframework-faker``

Usage
-----

`FakerLibrary keyword
documentation <https://guykisel.github.io/robotframework-faker/>`__

::

*** Settings ***
Library FakerLibrary

*** Test Cases ***
FakerLibrary Words Generation
${words}= FakerLibrary.Words
Log words: ${words}
${words}= FakerLibrary.Words nb=${10}
Log words: ${words}

You can also specify seeds and providers:

::

*** Settings ***
Library FakerLibrary locale=de_DE seed=124

See FakerLibrary's tests for more usage examples.

Contribute
----------

If you like this module, please contribute! I welcome patches,
documentation, issues, ideas, and so on.




Changelog for robotframework-faker
===========================

2.0.3 (2014-10-09)
------------------

- Fixed example in README.
- Add changelog to PyPI long_description.


2.0.2 (2014-10-09)
------------------

- Hotfix: Fix README.rst for PyPI compatibility.


2.0.1 (2014-10-09)
------------------

- Hotfix: Deleted invalid classifier.


2.0.0 (2014-10-09)
------------------

- Removed autocasting of input variables. This change is backwards
incompatible! Going forward, to input non-string data types to FakerLibrary
keywords, you must format them using RF's syntax for those data types.
For example, the integer 3 would be ${3}.
- Began using zest.releaser for automated packaging and releasing.
- Added pre-commit configuration to ensure PEP-8 compliance.
- Switched README to restructuredtext to improve rendering on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework-faker-2.0.3.zip (9.2 kB view details)

Uploaded Source

File details

Details for the file robotframework-faker-2.0.3.zip.

File metadata

File hashes

Hashes for robotframework-faker-2.0.3.zip
Algorithm Hash digest
SHA256 43dcc0356a70e2d0e384fa1ef99d8c707968b5813d45a51b3e51df53c0a5e03e
MD5 ba44883db8afcee049f8b964af6dc485
BLAKE2b-256 d3e241492a8ade0e63c3873051631c29bae8ecad2c959f2f40d17faeb5d31305

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page