How to anonymize a test database without compromising test reliability?

By Marie-Céline Burlats · December 2, 2026

An anonymized test database keeps tests reliable when the fictitious data complies with the application's checks, preserves the relationships between tables and files, and keeps dates consistent. In production, data remains real. In development, acceptance testing or training, consistent fictitious data is enough.

Key takeaways

  • 1

    Without a valid check digit, fictitious data is rejected by the application and the test fails.

  • 2

    A given customer keeps the same fictitious identity in the database, the PDF and the XML of Factur-X invoices.

  • 3

    Applying the same shift to all the dates in a record preserves their chronology, subject to business rules.

  • 4

    Anonymizing ephemeral environments as soon as they are created avoids duplicating personal data.

Randomly generated values make your tests fail

Applications check the data they receive. In an IBAN, the two digits that follow the country code are calculated from the other characters of the number. The French social security number also ends with a two-digit key, calculated from the previous thirteen digits.

Two randomly generated check digits therefore have only about a one-in-a-hundred chance of being right, and the value is rejected even though the code under test works correctly.

Fictitious data must match the original format, have a valid check digit and remain unique when the application requires it. The test then runs without being interrupted by invalid replacement data.

Keep tables and files consistent

A single customer can appear in several tables, but also in documents stored outside the database. Their identity must be replaced consistently across all these media to preserve the links between pieces of information.

This is particularly true of Factur-X invoices, a hybrid format used as part of the French e-invoicing reform.

A Factur-X invoice combines a PDF document compliant with the PDF/A-3 standard and an XML file named factur-x.xml. The PDF presents the information intended for human readers, while the XML contains the structured data processed by IT systems.

These files may be stored in a directory or a document management system, separately from the billing database.

Anonymizing the billing database alone is therefore not enough. The customer's name, address or SIREN number may remain visible in the invoices used for testing.

When an invoice falls within the scope of anonymization, the information remains consistent between the database, the PDF and the XML. In particular, a given customer keeps the same fictitious identity across all these media.

Without this consistency, reconciliations between invoices and billing data are likely to fail.

Anonymize dates without breaking calculations

The dates in a record are linked to one another. Admission precedes discharge, seniority is calculated from the start date and some entitlements depend on the date of birth.

If each date is replaced independently, these relationships can be broken and cause errors unrelated to the code under test.

One method is to apply the same shift to all the relevant dates in a record, in order to preserve their chronology and the intervals between them.

However, this processing must be adapted to business rules. A uniform shift alone does not guarantee that the results of calculations based on age at a fixed date or on regulatory thresholds are preserved.

Anonymize ephemeral test environments

Some platforms automatically create temporary test environments for developers. These so-called ephemeral environments disappear once the work is done.

They are typically created when a development branch, the version of the code a developer works on, is opened, and deleted when it is closed.

When they are created from a copy of production data, each new environment contains the same personal data as the source system.

To avoid this proliferation of copies, the platform team can build anonymization into the environment creation process.

The data is then anonymized before being made available, according to rules that are defined once and reused for each new environment.

Developers thus quickly get consistent test data, without directly handling personal data from production.

DOT Anonymizer: consistent fictitious data

DOT Anonymizer is the non-production data anonymization solution developed by ARCAD Software, a French software publisher with its R&D based in Annecy.

It supports more than thirty database management systems and file formats, including Db2 for i and Factur-X invoices.

Deployed in the customer's environment, it applies repeatable anonymization rules to every data copy. These rules cover three points in particular.

  • The formats and check digits expected by applications are preserved, and the data remains valid.

  • The necessary matches between database tables and files are maintained.

  • The dates in a given record receive coordinated transformations that keep their chronology.

The fictitious data produced thus remains suited to the processing and tests carried out by the teams.

The level of anonymization achieved depends on the rules and configuration chosen by each organization.

Check before handing a copy over to a test team

Before making an anonymized database available to developers or testers, three checks verify its functional consistency.

  • Replaced numbers comply with the application's validity rules, including check digits.

  • A given person keeps the same fictitious identity across the different tables and associated files.

  • The dates in a record keep their order and the intervals required for business processing.

These checks confirm that the test data remains usable. They come in addition to the checks on scope coverage, any residual personal data and the risk of re-identification.

Applications and tests work as they would on a real copy, and real personal data stays in production.

Anonymize without breaking your tests with DOT Anonymizer

About the author

Marie-Céline Burlats

Business Line Manager TDM, ARCAD Software

With more than 20 years of experience in IT project management, sales management and software solution development, Marie-Céline has been working at ARCAD Software for 15 years, where she now heads the TDM (Test Data Management) Business Line.

For any question on anonymization, contact our specialists.

TRIAL VERSION / DEMO

Request a trial version or a session in our sandbox!

Trial Version

Test Data Management Expert

Try it now!

Request a trial version

or

Demo

Test Data Management Expert

Personalized demo

Ask our data masking experts