liveBook · Manning

Test data generation

Test data generation is the creation of input data or fixtures according to defined rules for exercising and validating software.

How 2 Manning books explain it

Software Testing with Generative AI

Test data generation is the creation of input data sets for exercising software during testing activities.

How it is used
Uses targeted LLM prompts to create test data for exploratory, automated, and performance testing.
How deep it goes
Descends from prompt structure through schema and relationship handling, but stops short of trusting generated data without verification.
Examples
Demonstrates JSON rooms from OpenAPI, related rooms and bookings from SQL, and large booking seed sets for exploratory sessions.
What you can do after
Apply it via LLM prompts to produce structured or relational test data, then verify validity, usefulness, and privacy.

Read how Software Testing with Generative AI explains test data generation →

Data-Oriented Programming in Java

A test data generator is a mechanism that produces input values or cases for testing software according to defined generation rules.

How it is used
Generates varied, domain-relevant inputs for invariant tests and lets the same test explore larger operational workloads.
How deep it goes
Explains Stream.generate, specialization, combination, filtering, nesting, random sizes, and state partitioning without detailing generator internals.
Examples
Uses randomized accounts, regional subsets, threshold states, empty collections, nested lists, CSV payloads, and mirror-state tests.
What you can do after
Apply it via Java Stream.generate to construct targeted test cases, expose edge states, and scale inputs for workload experiments.

Read how Data-Oriented Programming in Java explains test data generation →

What to know first

Related concepts

Questions about test data generation

What is test data generation?

Test data generation is the creation of input data or fixtures according to defined rules for exercising and validating software.

Which Manning books explain test data generation?

Software Testing with Generative AI and Data-Oriented Programming in Java.

What should I know before learning test data generation?

Manning books that teach test data generation usually introduce software testing first.

What is test data generation a kind of?

Test data generation is a kind of data generation. Data generation is the automated creation of data values or records, often according to specified rules or distributions.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.