Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Robot Framework wrapper for faker, a fake test data generator

Project description

https://travis-ci.org/guykisel/robotframework-faker.svg?branch=master https://img.shields.io/pypi/v/robotframework-faker.svg https://img.shields.io/pypi/dm/robotframework-faker.svg https://img.shields.io/pypi/l/robotframework-faker.svg

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


Download files

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

Files for robotframework-faker, version 5.0.0
Filename, size File type Python version Upload date Hashes
Filename, size robotframework_faker-5.0.0-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size robotframework-faker-5.0.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page