https://github.com/MarketSquare/robotframework-faker
Robot Framework keyword library wrapper for faker
https://github.com/MarketSquare/robotframework-faker
Last synced: over 1 year ago
JSON representation
Robot Framework keyword library wrapper for faker
- Host: GitHub
- URL: https://github.com/MarketSquare/robotframework-faker
- Owner: MarketSquare
- License: mit
- Created: 2014-02-23T02:49:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-01-21T02:43:05.000Z (over 2 years ago)
- Last Synced: 2025-03-29T00:31:26.950Z (over 1 year ago)
- Language: HTML
- Size: 195 KB
- Stars: 66
- Watchers: 8
- Forks: 22
- Open Issues: 20
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
robotframework-faker
====================
.. image:: https://travis-ci.org/marketsquare/robotframework-faker.svg?branch=master
:target: https://pypi.python.org/pypi/robotframework-faker
.. image:: https://img.shields.io/pypi/v/robotframework-faker.svg
:target: https://pypi.python.org/pypi/robotframework-faker
.. image:: https://img.shields.io/pypi/dm/robotframework-faker.svg
:target: https://pypi.python.org/pypi/robotframework-faker
.. image:: https://img.shields.io/pypi/l/robotframework-faker.svg
:target: https://pypi.python.org/pypi/robotframework-faker
Robot Framework keyword library wrapper for
`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! `__
Installation
------------
``pip install robotframework-faker``
Usage
-----
`FakerLibrary keyword
documentation `__
.. code:: robotframework
*** 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:
.. code:: robotframework
*** 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.