Robot Framework wrapper for faker, a fake test data generator
Project description
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
*** 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for robotframework-faker-4.1.0.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed74a79ebc766213b825557b15766f75bb95b8650915e1d65d16c18a3556b08 |
|
MD5 | 17738f44139ce6facc5581931517a3d7 |
|
BLAKE2b-256 | 7bd98a548e6280bed4f52e768136b59177c7108b42d77d0ddf762450ff43882e |
Hashes for robotframework_faker-4.1.0.dev0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0635bab6a21b9ad0d0bdf7e3f07f9bbb6435ea93bcf2bae873491e8b4632df0b |
|
MD5 | 27c35494f26f59a957406dce0e9ff573 |
|
BLAKE2b-256 | 95dddde849d062ad64b287061137315ba4902d057c41e10be12b8d660cfb6c3c |