We use analytics to count visits and form use. It is on unless you reject it. We show no ads on this site.

Glossary

Test data management

Published . Last updated . Published by Zapple.Tech, founded by the founders of CodeceptJS and Codeception, open-source testing frameworks.

Also called
TDM
Published
Updated
Related service
Integration testing
Definition

Test data management is how a team creates, protects, shares and refreshes the data its tests run on. Done well, tests get realistic data on demand and no real customer data sits in test systems. Done badly, releases wait for environments and tests fail for reasons that have nothing to do with the code.

What does test data management cover?

Tests need data: users, orders, accounts, products. Test data management is the set of habits that decide where that data comes from, who may see it, and how it gets back to a known state. It covers four jobs: getting data, protecting it, sharing it between teams and environments, and resetting it so the next run starts clean.

It is often invisible until it breaks. Automation that passes on a developer’s machine and fails in the shared environment is frequently a data problem, not a code problem. For how this fits a wider plan, see our post on test automation strategy mistakes.

Production copy, masked data or synthetic data: which fits your case?

You have five sources. They trade privacy against realism and effort.

Source Privacy exposure Realism Upkeep Refresh time
Raw production copy Highest: real personal data in test systems Highest Low until an incident Slow, a full copy
Masked production copy Medium: depends on how well the masking is done High Masking rules change with every schema change Slow to medium
Subset of masked data Medium, smaller surface High for covered cases Subset rules must keep related records together Faster
Synthetic data Low if generated from scratch Varies: misses odd real cases unless modelled Generator needs tuning Fast, on demand
Hand-built fixtures None, if the values are invented Low, only the cases you wrote Grows with the suite Instant, per test

Masking sounds simple and is not. The goal is that nobody can link a record back to a person, which is a different goal from “the field looks scrambled”. Treat a removed name as the start of the question, not the end. GDPR Recital 26 says that pseudonymised data which could be attributed to a person with additional information is still information on an identifiable person, and that to judge identifiability you account for “all the means reasonably likely to be used, such as singling out”. Ask your legal owner how that applies to your data.

For generated data, the Synthetic Data Vault documentation describes a library that trains a model on your real tables and samples any amount of synthetic data from it, with tools to measure how close it is to the original. That is a vendor’s description of its own tool. It does not tell you whether the result is safe for your data, so ask your security owner to review it.

For the data a single test needs, fixtures are often enough. Playwright’s documentation says fixtures establish the environment for each test and are isolated between tests, and pytest documents the same idea for Python. Where a test needs a real database, Testcontainers can start one in a container for the run. You then fill it from one of the sources above.

Who should own test data, and what does poor test data cost a release?

Name one owner per data set. In our experience the shared environment database is the one with no owner, and that is where problems collect. For data that has to line up across several services, see our integration testing services.

Poor test data shows up as:

  • Flaky tests. Two suites change the same record. One passes, the other fails, and the failure moves between runs.
  • Blocked environments. A refresh takes a day, so a release waits for it.
  • Personal data in test systems. A masked copy that was never reviewed, readable by every contractor with access.
  • False confidence. Hand-built data covers only the cases someone remembered.

A workable split: platform or QA owns the shared environment data and its refresh; each team owns the fixtures that create what its tests need. Put the refresh in the pipeline, not in a person’s calendar. For where that fits, read how to build a QA automation pipeline and continuous testing in DevOps.

Test data management: test data comes from a production copy, a masked copy, a subset of it, synthetic data or fixtures built by each test; one named owner looks after the shared environment data and each team owns its fixtures

Service virtualization replaces a dependency you cannot get; test data management supplies the data inside the ones you can. Both topics share one conference session: a talk recording from Alaska Airlines covers them together. See service virtualization for the first. Running one test over many rows of data is data-driven testing, which is a separate term.

What does Zapple.Tech do about it?

If your tests fail for reasons nobody can explain, start with the evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the QA audit and assessment page.

Tell us about your environments in the form below.

  • Service virtualization

    Service virtualization replaces a system your tests depend on, such as a payment provider or a service another team has not built yet, with a simulated version that answers like the real one. It lets you test when the dependency is slow, costly or missing. It pays off only if someone keeps the simulation in step with the real service.

  • API testing

    API testing checks a service directly through its interface rather than through a screen. Tests send requests to endpoints and verify responses, business rules, data and access rules. Our API testing services write automated API tests in your repository, covering contracts and back-end rules, and run them in your CI on every change.

  • Integration testing

    Integration testing checks the interfaces and interactions between components, or between your system and other systems and external services. It finds faults in the data they exchange and the flows that cross them. Our integration testing services write automated tests for your services, databases and third-party systems, and run them in your CI.

  • Data-driven testing

    Data-driven testing runs one test over many sets of input and expected values kept apart from the test logic. You write the check once and add cases as rows of data. It pays off when one flow must work for many inputs, such as prices, locales or user roles, and it is overkill for a handful of cases.

All terms in the glossary

Test with AI

Integration testing

Integration testing services: automated tests for how your services, databases and third-party systems work together, run in CI. Start with a one-week audit.

See the service

Questions about test data management

What is test data management?

Test data management, or TDM, covers how a team gets, prepares, protects and refreshes the data used in testing. It includes choosing between masked production data, subsets, synthetic data and hand-built fixtures, deciding who owns each data set, and keeping test environments supplied without exposing real personal data.

What is the difference between data masking and synthetic test data?

Masking starts from real records and hides or replaces the sensitive fields. Synthetic data is generated from scratch, often by a model trained on real data's structure. Masked data keeps real-world quirks but carries re-identification risk if done badly. Synthetic data avoids copying people but may miss odd real cases.

Can you use production data for testing?

A raw copy of production data is a privacy and security risk, because personal data then lives in systems with weaker controls. The usual alternatives are to mask or de-identify it first, subset it, or generate synthetic data. Ask your security and legal owners what your regulators and contracts require before you copy anything.

Who is responsible for test data?

One named owner per data set. Often it is QA or a platform team for shared environment data, and each team for the fixtures inside its own tests. The failure to avoid is the shared database nobody owns, where any team can change a record another team's tests depend on.

What does a test data management tool do?

A tool typically automates one or more steps: discovering sensitive fields, masking them, cutting a subset, generating synthetic records, and refreshing environments on demand. Whether you need one depends on how many environments and how much data you manage. Small teams often start with scripts and fixtures.

Request a QA audit quote

Tell us what you ship and what worries you.

What happens after you send this

  1. You send the form: your situation and what you need tested, then your name and work email.
  2. Within one business day, we reply with a suggested first step, its scope, timeline and a quote.
  • Fixed scope
  • You decide after each step
  • The tests live in your repository
  • An NDA signed before access

“They helped us to close the positions and consult our team how to proceed further. High-quality quick feedbacks with the deep checking of the required tasks, professional approach, great understanding of the company's technologies and product, detailed reports.”

Kristina Lavrentieva, Manager at keepgo.com, Israel
  • Rated 4.9 out of 5 on Clutch, from 7 client reviews
  • 42 completed test automation and infrastructure projects
  • Founded by the founders of CodeceptJS and Codeception, open-source testing frameworks

Request a QA audit quote

    What is closest to your situation?
    Optional. The product, the platforms, how often you release, what broke last.

    You decide after our reply whether to go ahead.

    Prefer to talk first? Book a call

    One-week QA audit · written report

    Request a QA audit quote