robotframework-faker is a Robot Framework keyword library that acts as a wrapper for the popular Faker Python library, enabling easy generation of fake test data within Robot Framework test suites. The current version is 6.0.0, supporting Python 3.9 through 3.13. Releases are made as needed, often coinciding with significant changes in the underlying Faker library or Robot Framework compatibility updates.
pip install robotframework-fakerVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import `FakerLibrary` with a specified locale and use some basic keywords like `Name`, `Address`, and `Words` to generate fake data within a Robot Framework test case.
Ensure your project uses Python 3.x (3.9-3.13 for v6.0.0).
Update your build scripts or CI/CD pipelines to use modern Python packaging APIs, if you were directly interacting with `pkg_resources` in relation to this library.
Explicitly install and pin a compatible `Faker` version (e.g., `pip install Faker==x.y.z`) in your project's dependencies to ensure consistent behavior. Consult `Faker`'s documentation for compatibility with your Python version.
Call FakerLibrary keywords within `*** Test Cases ***` or `*** Keywords ***` sections. For suite-level dynamic data, use a `Suite Setup` keyword to generate and set variables using `Set Suite Variable`.