QAAnywhere

Remote QA & testing jobs, worldwide.

Guides

Test data management: the work behind reliable automation

By Denis Bojkovski, Test Automation Architect · Published November 25, 2026

Data is where suites rot

Test data was mentioned in 17 of the 86 full descriptions on QAAnywhere on 25 November 2026, more often than most individual tools. When a suite becomes unreliable, people blame the browser. Often the customer named "Test User 7" was edited by somebody else.

Two kinds of data

Reference data rarely changes: countries, currencies, product categories. Seed it once, keep it under version control, and treat it as read-only.

Transactional data is what tests act upon: customers, orders, invoices. Create it inside the test that needs it.

Trouble begins when transactional data is treated as reference data, such as a shared account that everybody logs in with.

Builders with sensible defaults

A test should state only what matters to it.

public sealed record Customer
{
    public string Email { get; init; } = 
quot;t-{Guid.NewGuid():N}@example.com"; public string Country { get; init; } = "DE"; public bool Verified { get; init; } = true; } var customer = new Customer { Verified = false };

A reader sees that verification is the point. The address is unique, so parallel runs do not collide, and it uses example.com, a domain reserved for documentation, so nobody real receives an email.

Create through the fastest honest route

  1. The public API: checks the same rules as users meet.
  2. A test-only endpoint, disabled outside test environments.
  3. Direct database inserts: fast, but they can create states the application never would.
  4. The user interface: slow, and the set-up fails for unrelated reasons.

When you insert directly, keep the statements in one place, because every schema change will break them.

Cleaning up, or not

Deleting after each test sounds tidy, and fails whenever a test crashes. Unique data that is never reused needs no deletion to stay correct. Remove it in bulk on a schedule by a recognisable prefix. For databases you own, create a fresh one per run in a container, or wrap each test in a transaction that is rolled back. The rollback method works only when the code under test uses the same connection.

Time

Expiry rules, month ends and daylight saving produce tests that fail on certain dates. Pass a clock into the application (.NET has TimeProvider) and set it in tests. Where you cannot, compute dates relative to now and choose values well away from midnight.

Copies of production

Production data has realistic variety and real people in it. Under laws such as the GDPR, copying it to a less protected environment needs a legal basis and safeguards. If the organisation does allow it:

  • mask names, contact details, free text and files before the copy leaves the protected zone;
  • mask consistently, so the same customer stays the same across tables;
  • check that combinations of fields cannot identify somebody;
  • limit access and delete on schedule.

Synthetic data is safer by default. Learn from production its shapes instead: the longest name, accounts with 40,000 orders, addresses without postcodes. Generate those deliberately.

A useful exercise

Choose your ten most valuable tests and run each alone against an empty environment containing only reference data. Every one that fails depends on hidden data. Make the dependency visible, test by test. This usually improves reliability more than changing tools. Then try them in parallel; flaky tests in CI covers what remains.

Open remote QA roles

  1. Quality Engineer (Automation JS/TS) - Software IndustryTruelogic Software · Remote
  2. QA Automation Engineer with AEM - RemoteRootshell Enterprise Technologies, Inc. · Remote
  3. Senior QA Automation Engineer - Real EstateTruelogic Software · Remote
  4. QA Automation EngineerSardine · Remote
  5. Test Automation Engineer - SeniorGdit · Any Location / Remote

More guides