All Projects → guykisel → robotframework-faker

guykisel / robotframework-faker

Licence: MIT license
Robot Framework keyword library wrapper for faker

Programming Languages

HTML
75241 projects
python
139335 projects - #7 most used programming language
RobotFramework
109 projects

robotframework-faker

https://travis-ci.org/guykisel/robotframework-faker.svg?branch=master

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].