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
File details
Details for the file robotframework-faker-5.0.0.tar.gz
.
File metadata
- Download URL: robotframework-faker-5.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ba9cc2c353a9a2dd3924869a583f217e6738bff0546a07a3e581186af166531 |
|
MD5 | a1422edc6469d154efa19a1b258839c1 |
|
BLAKE2b-256 | 37f79d388983b12c4eefff25d134ce7a7a32385e565f738d23d0d0040fd3082e |
File details
Details for the file robotframework_faker-5.0.0-py3-none-any.whl
.
File metadata
- Download URL: robotframework_faker-5.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3471bc398caf0d9ac569ccacff21068f9233c10e08e7bda56a813272b57932e3 |
|
MD5 | f1cf7bcf76b23ed880e21543ca15c5db |
|
BLAKE2b-256 | 5327e51e1ab454b0d207a86cd6395b663da0f524f5aba54a4126fee342cd8e47 |