Questions

The questions people ask first, answered in the first sentence.

What is QA Data Generator?

A test data generator for QA engineers and developers, with a command line and a desktop window. It makes whole datasets from a short YAML recipe, breaks them on purpose, and writes a manifest saying what your application should do with every value it damaged.

How is it different from a fake data library?

A fake data library gives you values. QA Data Generator also gives you values that should fail, such as a card number whose check digit is off by one, and valid values careless validation refuses, such as O’Brien, with the right answer for each in a file your test reads. What it breaks lists every kind of damage, and QA Data Generator and other tools sets it beside Faker and Mockaroo.

Is it free? Can I use it at work?

Yes. The code is GPL-3.0. Data, files and manifests you generate are yours: they are not covered by the licence, and you can use them in closed source products and commercial test suites.

Does it need the internet?

No. It opens no network connection: no account, no telemetry, no update check.

Will I get the same data on another machine?

Yes. The same recipe and seed give the same bytes on Windows, macOS and Linux, including which rows were damaged and how.

Can it damage a CSV file I already have?

Yes. qadg corrupt works out what each column holds by looking at the values, damages a copy, and writes the manifest beside it. Your file stays as it was. Damage a file you already have shows a run.

Can I fail a build on a wrong answer?

Yes. Write down what your application did with each row, and qadg verify compares it with the manifest. It ends with exit code 4 when they disagree. Using it in CI has every exit code.

Why do generated SSNs start with 666?

That area is never issued, so a generated SSN cannot be anybody’s. An application that checks the area will refuse them, valid rows included.

Are the card numbers real?

They are the test numbers payment providers publish, not numbers the program makes up. None of the providers promises that no bank has issued the same number to a real card, so keep them in test systems.

Which output formats does it write?

CSV, JSON or SQL INSERT statements for the data, the last for PostgreSQL, MySQL and MariaDB, SQL Server or SQLite. The manifest is JSON, and can also be written as a Gherkin Examples table, as CSV or as Markdown.

Need test files rather than test records?

Testing Files Generator makes real files in dozens of formats at any exact size, with a manifest of its own.