Registry / testing / robotframework-faker

robotframework-faker

JSON →
library6.0.0pypypiunverified

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-faker
INSTALL
IMPORT
SIG · ROBOTFRAMEWORK-FAK
R
robotframework-faker
testingpythonv6.0.0
Install
3.7s avg
Import
Disk
47MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v6.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 49.2MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 3.7s · import 0.000s · 50MB
47MB installed
● package 47MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FakerLibrary
*** Settings *** Library FakerLibrary
from robotframework_faker import FakerLibrary
robotframework-faker is a Robot Framework library, imported directly within Robot Framework's `*** Settings ***` section using the `Library` keyword, not as a standard Python import.

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.

--- example.robot --- *** Settings *** Library FakerLibrary locale=en_US Documentation Example of using Robot Framework Faker Library *** Test Cases *** Generate a Fake Name and Address ${name}= FakerLibrary.Name Log To Console Generated Name: ${name} ${address}= FakerLibrary.Address Log To Console Generated Address: ${address} Generate Multiple Words ${words_5}= FakerLibrary.Words nb=5 Log To Console 5 Words: ${words_5} --- To run --- pip install robotframework robotframework-faker robot example.robot
Debug
Known issues
breakingVersion 5.0.0 removed support for Python 2.7, aligning with the upstream Faker library's move to Python 3.
fix
Ensure your project uses Python 3.x (3.9-3.13 for v6.0.0).
affects: 5.0.0 and newer
breakingVersion 6.0.0 removed the `pkg_resources` API, which was deprecated in Setuptools. This may affect specific build or deployment environments that relied on it. [cite: v6.0.0 release notes]
fix
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.
affects: 6.0.0 and newer
gotchaStarting with v6.0.0, `robotframework-faker` no longer pins the version of its underlying `Faker` package. This means the user is responsible for ensuring `Faker` is installed and that its version is compatible with the `FakerLibrary` keywords being used. Mismatched versions can lead to unexpected behavior or missing keywords.
fix
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.
affects: 6.0.0 and newer
gotchaFakerLibrary keywords cannot be directly called within Robot Framework's `*** Variables ***` section. This section is for static assignments, not for executing dynamic keywords that generate data at runtime.
fix
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`.
affects: All versions
Upgrade
Version history
6.0.0latest on PyPI · released Jul 18, 2025
Audit
Dependencies
FakerrequiredCore dependency for fake data generation. Starting with v6.0.0, `robotframework-faker` no longer pins the `Faker` version, requiring users to manage its compatibility.
robotframeworkrequiredThe library is a wrapper for Robot Framework.
Agent activity
17 hits · last 30 days
node
14
Bingbot
1
OpenAI (training)
1
Resources
robotframework-faker — pip install robotframework-faker · libregistry