Selenium Test Data: Seeded JSON Fixtures for Data-Driven WebDriver Tests
Selenium test data is where a WebDriver suite usually starts hurting once it moves to a shared Selenium Grid. Tests that passed one at a time collide when four browser sessions run at once, a rerun fails because the emails from the last run are still registered, and every test spends most of its time clicking through signup forms just to reach the page it actually tests. This post builds data-driven Selenium tests on a generated, seeded JSON fixture: form inputs with their expected outcomes, planted invalid rows, backend state created through the app's API instead of the UI, and values that are unique per run so parallel sessions can't trip over each other.
JsonFabrica generates the fixture, and it's only a JSON-over-HTTP API. There's no Selenium plugin, Java library or WebDriver extension. A short curl and jq script calls the API and commits the result, and the tests read that file with Jackson. Test runs never touch the network for data. If you're on Playwright or Cypress instead, the posts on seeding a backend for Playwright and Cypress JSON fixtures cover their hooks. This one is about the problems specific to Selenium and Grid.
The Java code below ran with Selenium 4.53.0, JUnit 6.1.3 and Jackson 2.23 on Java 21, against headless Chromium 156 and a small throwaway web app standing in for yours. The suite passed with local ChromeDriver and through a Selenium Grid 4.53 standalone server, with one browser at a time. The container needed Chromium's sandbox switched off in its launcher config, outside the test code, and its process limit wouldn't fit more than one Chromium alongside the JVMs. So the parallel settings were checked with API-only tests, not concurrent browsers. The tests use only the JUnit Jupiter API and also compile against JUnit 5.14. The fixture was rendered with the JsonFabrica template engine, and the regen script ran against a local stand-in for the API that uses the same engine. All outputs shown are from those runs.
Why Selenium test data breaks on a shared Grid
The running example is an "invite a team member" form. An admin opens
/teams/{id}/members/new, enters a name, an email and a role, and
either sees "Invitation sent to ..." or an error under a field. The
app rejects an empty name, an email without an @, and an email that
already belongs to the team, and it won't register the same email
twice anywhere.
To test that form, each test needs a team and a logged-in admin first. Three things tend to go wrong in Selenium suites:
- Setup goes through the UI. Signing up, creating a team and logging in through forms is several page loads before the test starts. In a data-driven test that runs per row, the setup cost multiplies, and a slow signup page fails tests that have nothing to do with signup.
- Parallel sessions share data. On a Grid, four browser sessions run at once. If they log in as the same admin or invite the same email, results depend on timing: one session's invite makes another's "already registered".
- Shared environments remember. The Grid usually points at a
shared environment, not a fresh database per run. Hard-coded
[email protected]works once, then the next run, or another team's job, finds it taken.
The fixes are a fixture that holds every row with its expected outcome, backend state created over HTTP, and a run-specific tag on everything that has to be unique.
A seeded JSON fixture for Selenium data-driven testing
The fixture comes from one template. It describes the team each test creates, then the invite rows. Rows 1 to 3 are planted invalid cases, chosen by loop index, and every row after that is a valid invite:
<setVar('taken', getRandomEmail('example.test'))>{
"team": {
"name": "<getRandomSurname()> <getRandomElement('Labs', 'Studio', 'Ops')>",
"admin": {
"name": "<getRandomFullName()>",
"email": "<getRandomEmail('example.test')>"
},
"members": [
{ "name": "<getRandomFullName()>", "email": "<getVar('taken')>" }
]
},
"invites": [
<for(i, 1, getParam('rows', 10))><if(getVar('i') > 1)>,<endIf>
{
"key": <if(getVar('i') == 1)>"missing-name"
<elseIf(getVar('i') == 2)>"bad-email"
<elseIf(getVar('i') == 3)>"already-member"
<else>"valid-<appendBefore('0', getVar('i'), 2)>"<endIf>,
"name": <if(getVar('i') == 1)>""<else>"<getRandomFullName()>"<endIf>,
"email":
<if(getVar('i') == 2)>"<toLowerCase(getRandomName())>.example.test"
<elseIf(getVar('i') == 3)>"<getVar('taken')>"
<else>"<getRandomEmail('example.test')>"<endIf>,
"role": "<getRandomElement('member', 'admin', 'viewer')>",
"expectError": <if(getVar('i') == 1)>"name"
<elseIf(getVar('i') == 2 || getVar('i') == 3)>"email"
<else>null<endIf>
}<end_for>
]
}
What each part does:
- One variable, because one value is used twice.
setVarstores an email that appears both as the team's existing member and as row 3's invite, so the "already a member" row really does collide with the seeded team. Everything else is written inline. - Each planted row breaks one rule. Row 1 has an empty name. Row 2
has an email with no
@, built fromtoLowerCaseand a random first name. Row 3 reuses the member's email. Their other fields are valid, so each row can only fail for its own reason. - Every row carries its expected outcome.
expectErrornames the field that should show an error, or isnullfor an invite that should go through. The test reads it, so adding a planted case is a template change, not a code change. - The keys are stable. The planted keys are fixed strings, and
appendBeforeturns the loop index intovalid-04,valid-05and so on. Each key names the same kind of row at every seed, which matters later when it becomes part of each test's unique tag. - The emails use
example.test. The.testtop-level domain is reserved, so no invite email can reach a real inbox, even from a shared environment that sends mail.
Template expressions support comparisons (==, !=, <, <=, >,
>=) and &&/||, but no arithmetic. That's why invalid rows are
picked by index rather than computed. for bounds are inclusive, the
bound reads the rows param with getParam,
and the <if(getVar('i') > 1)>,<endIf> guard puts a comma before every
item except the first. The control flow docs
cover for and if/elseIf/else. Keep rows at 4 or more, or
some planted rows, or all the valid ones, won't be generated.
What seed 2207 renders
Rendered with seed 2207 and the default 10 rows, the fixture starts
like this, trimmed here to the team and rows 2 to 4:
{
"seed": 2207,
"team": {
"name": "Woolf Ops",
"admin": {
"name": "Jorander Langridge",
"email": "[email protected]"
},
"members": [
{
"name": "Mariah Soto",
"email": "[email protected]"
}
]
},
"invites": [
{
"key": "bad-email",
"name": "Marge Wintshaw",
"email": "guadalupe.example.test",
"role": "viewer",
"expectError": "email"
},
{
"key": "already-member",
"name": "Gilella Ridford",
"email": "[email protected]",
"role": "member",
"expectError": "email"
},
{
"key": "valid-04",
"name": "Benicio Caldley",
"email": "[email protected]",
"role": "member",
"expectError": null
}
]
}
The seed key isn't part of the template. The regen script adds it
from the API response, so the file records how to rebuild itself.
Regenerating the fixture with curl and jq
The regen script is the only code that talks to JsonFabrica. It sends
the raw template to
POST /v1/templates/generate, which
renders a template without saving it, and writes the result where the
tests load it from:
#!/usr/bin/env bash
# Regenerates src/test/resources/invites.json from scripts/invites.tmpl.
# Run by hand, review the diff, commit both files. Test runs never call
# the JsonFabrica API; they read the committed JSON.
#
# scripts/regen-invites.sh # pinned seed, no diff
# scripts/regen-invites.sh 48213 # rebuild a logged seed
# scripts/regen-invites.sh random # let the API pick the seed
set -euo pipefail
SEED="${1:-2207}" # change the pinned seed only to replace the data
API="${JSONFABRICA_URL:-https://api.jsonfabrica.com}/v1/templates/generate"
OUT=src/test/resources/invites.json
: "${JSONFABRICA_API_KEY:?set JSONFABRICA_API_KEY}"
request=$(jq -n --rawfile body scripts/invites.tmpl --arg seed "$SEED" \
'{body: $body, params: {rows: 10}}
+ (if $seed == "random" then {} else {seed: ($seed | tonumber)} end)')
# --fail-with-body exits non-zero on 4xx/5xx but still prints the
# {"error": {"code", "message", "details"}} envelope.
if ! response=$(curl -sS --fail-with-body -X POST "$API" \
-H "Authorization: Bearer $JSONFABRICA_API_KEY" \
-H "Content-Type: application/json" \
--data-binary "$request"); then
echo "$response" >&2
exit 1
fi
# meta.generatedAt changes on every call, so it stays out of the file.
jq '{seed: .meta.seed} + .data' <<<"$response" > "$OUT"
echo "wrote $OUT (seed $(jq .seed "$OUT"))"
Things worth knowing about the request and response:
- The response is
{ data, meta }.datais the generated document.meta.seedis the seed that was used, either the one you sent or, withrandom, the one the API picked. - Same template, seed and params give the same file. Running the
script with the pinned seed produces no diff. Editing the template
or changing
rowsshifts the random draws, so commit the template and the fixture together. - A mistyped seed stops the script.
jq'stonumberfails onabc, so nothing is sent and the old fixture stays in place. JSONFABRICA_URLis optional. It defaults to the hosted API and only exists so the script can point somewhere else.
Loading Selenium WebDriver test data JSON in JUnit
Jackson reads the fixture straight into records that mirror its shape. Each record also knows how to apply a unique tag to its emails, which the next sections rely on:
package com.example.invites;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.util.List;
record Person(String name, String email) {
Person withTag(String tag) {
return new Person(name, InviteFixture.tagEmail(email, tag));
}
}
record Team(String name, Person admin, List<Person> members) {
Team withTag(String tag) {
return new Team(name + " " + tag, admin.withTag(tag),
members.stream().map(m -> m.withTag(tag)).toList());
}
}
record Invite(String key, String name, String email, String role,
String expectError) {
Invite withTag(String tag) {
return new Invite(key, name, InviteFixture.tagEmail(email, tag), role,
expectError);
}
}
record InviteFixture(long seed, Team team, List<Invite> invites) {
static InviteFixture load() {
try (InputStream in =
InviteFixture.class.getResourceAsStream("/invites.json")) {
return new ObjectMapper().readValue(in, InviteFixture.class);
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
/** [email protected] -> [email protected]; no '@' stays invalid. */
static String tagEmail(String email, String tag) {
int at = email.indexOf('@');
return at < 0 ? email
: email.substring(0, at) + "+" + tag + email.substring(at);
}
}
Jackson 2.12 and later deserialize records through their canonical
constructors, so there are no setters or annotations. The bad-email
row has no @, so tagEmail leaves it alone and it stays invalid
after tagging.
Seed backend state through the API, not the browser
Each test needs a team with an admin and one existing member. Creating that through signup and team-settings pages would add several page loads to every row. Instead, the test calls the app's API directly from the JVM:
package com.example.invites;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpRequest.BodyPublishers;
import java.net.http.HttpResponse.BodyHandlers;
/** Seeds backend state over HTTP, not through the browser. */
final class TestApi {
private static final HttpClient HTTP = HttpClient.newHttpClient();
private static final ObjectMapper JSON = new ObjectMapper();
record CreatedTeam(String id, String sessionToken) {}
static CreatedTeam createTeam(String appUrl, Team team) throws Exception {
HttpRequest req = HttpRequest
.newBuilder(URI.create(appUrl + "/api/test/teams"))
.header("Content-Type", "application/json")
.POST(BodyPublishers.ofString(JSON.writeValueAsString(team)))
.build();
var res = HTTP.send(req, BodyHandlers.ofString());
if (res.statusCode() != 201) {
throw new IllegalStateException(
"seeding failed: " + res.statusCode() + " " + res.body());
}
return JSON.readValue(res.body(), CreatedTeam.class);
}
}
POST /api/test/teams is the demo app's endpoint, not something
Selenium or JsonFabrica provides. It takes the fixture's team object
as-is and returns the new team's id and a session token for its admin.
Your app needs something equivalent: a seeding endpoint enabled only
in test environments, your normal admin API, or a direct database
insert from the test process. The rule is the same either way. The
browser only does the part of the flow the test is about.
The session token is how the browser skips the login page. WebDriver
won't add a cookie for a domain the browser isn't on. A new session
starts on a data:, page, and adding the cookie there fails with
invalid cookie domain. So the test first loads /robots.txt, a tiny
page on the same origin, adds the cookie, and then opens the form
already logged in. Here's the whole test class:
package com.example.invites;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.net.URI;
import java.time.Duration;
import java.util.List;
import java.util.UUID;
import java.util.stream.Stream;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Named;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.openqa.selenium.By;
import org.openqa.selenium.Cookie;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.support.ui.WebDriverWait;
class InviteMemberTest {
static final InviteFixture FIXTURE = InviteFixture.load();
static final String APP =
System.getenv().getOrDefault("APP_URL", "http://localhost:3000");
// One id per suite run. CI can pass its own, e.g. the build number.
static final String RUN = System.getenv().getOrDefault(
"TEST_RUN_ID", UUID.randomUUID().toString().substring(0, 8));
WebDriver driver;
@BeforeEach
void openBrowser() throws Exception {
var options = new ChromeOptions();
options.addArguments("--headless", "--window-size=1280,900");
String grid = System.getenv("SELENIUM_GRID_URL");
driver = grid == null
? new ChromeDriver(options)
: new RemoteWebDriver(URI.create(grid).toURL(), options);
}
@AfterEach
void closeBrowser() {
if (driver != null) driver.quit();
}
static Stream<Named<Invite>> invites() {
return FIXTURE.invites().stream().map(i -> Named.of(i.key(), i));
}
@ParameterizedTest(name = "{0}")
@MethodSource("invites")
void inviteMember(Invite row) throws Exception {
String tag = RUN + "-" + row.key();
String where = "seed " + FIXTURE.seed() + ", tag " + tag;
Invite invite = row.withTag(tag);
// Backend state over the API: a team, its admin and one member.
var team = TestApi.createTeam(APP, FIXTURE.team().withTag(tag));
// Log in with the seeded session. Cookies need a page on the domain.
driver.get(APP + "/robots.txt");
driver.manage().addCookie(new Cookie("session", team.sessionToken()));
driver.get(APP + "/teams/" + team.id() + "/members/new");
driver.findElement(By.id("name")).sendKeys(invite.name());
driver.findElement(By.id("email")).sendKeys(invite.email());
new Select(driver.findElement(By.id("role")))
.selectByValue(invite.role());
driver.findElement(By.id("invite")).click();
By outcome = By.cssSelector("[role=status], .error");
new WebDriverWait(driver, Duration.ofSeconds(5))
.until(d -> !d.findElements(outcome).isEmpty());
List<WebElement> errors = driver.findElements(By.cssSelector(".error"));
List<String> fields =
errors.stream().map(e -> e.getDomAttribute("data-field")).toList();
List<String> messages = errors.stream().map(WebElement::getText).toList();
List<String> expected = invite.expectError() == null
? List.of() : List.of(invite.expectError());
assertEquals(expected, fields, where + ", page says " + messages);
if (invite.expectError() == null) {
String status =
driver.findElement(By.cssSelector("[role=status]")).getText();
assertEquals("Invitation sent to " + invite.email(), status, where);
}
}
}
How the pieces fit:
- One test method, one run per fixture row.
@MethodSourcesupplies the rows and@ParameterizedTestruns the method once per row.Named.ofgives each invocation its row key as a display name, so IDEs and JUnit's own reports listmissing-name,bad-emailand so on instead of[1],[2]. - No driver binary setup.
new ChromeDriver(options)relies on Selenium Manager, which ships with Selenium 4 (since 4.6) and finds or downloads a matching driver when none is configured. In this run it picked up the Chromium and chromedriver already installed. - Plain
--headlessis enough. Since Chrome 132 it always means the new headless mode, and the old one ships separately aschrome-headless-shell, so--headless=newis no longer needed. - One wait covers both outcomes. The
WebDriverWaitreturns as soon as either the success message or any field error appears, so a valid row that unexpectedly fails reports the error text instead of timing out waiting for a success message. - Assertions compare fields, and messages say why. The test checks which fields show an error. The failure message carries the page's error text, the seed and the tag, which is everything needed to reproduce it.
- Every test gets a fresh browser. JUnit creates a new instance of
the test class for each invocation, so
driveris never shared between rows, even when they run concurrently.
Unique values per run for parallel Grid sessions
Every row creates its own team from the same team object in the
fixture, so without changes, all ten tests would try to register
[email protected] as their admin. The tag fixes that.
It's built from two parts:
RUNis unique per suite run. It's random by default, and CI can setTEST_RUN_IDto its build number to make data easy to trace back to a job.- The row key is unique within a run. Two rows never share a tag, even when they run in parallel on different Grid nodes. That follows from how the tag is built; the browser suite itself was only run one session at a time here.
tagEmail puts the tag in the email's local part, after a +, so
row valid-04 in run 3f9a1c2e registers its admin as
[email protected]. The team name gets
the same suffix. The already-member row still collides on purpose,
because its invite and the seeded member get the same tag. If your
app rejects + in emails, or strips everything after it before
checking uniqueness, join the tag with a dot instead, as in
[email protected].
To see what the tag prevents, pin it. Setting TEST_RUN_ID=build-417
and running the suite twice against the same app is what happens when
two jobs share an id, or when a retry reuses one. The first run passes
and the second can't even seed. Below, only one of the ten exceptions
is shown, with the class name shortened and the response body
pretty-printed to fit:
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0
[ERROR] Tests run: 10, Failures: 0, Errors: 10, Skipped: 0
IllegalStateException: seeding failed: 409
{
"error": "email taken: [email protected]"
}
This is the same failure a hard-coded [email protected] causes in a
shared environment. The difference is that a unique tag per run makes
it impossible by construction. Because the fixture itself is
committed and identical on every run, the uniqueness has to come from
the test process. If you want values that are unique across runs
straight out of the generator, for example sequential account
numbers, JsonFabrica's persistent sequences do that, as covered in the
post on unique test data with sequences and counters.
That needs an API call at test time, which this setup deliberately
avoids.
Tagged data does pile up in a long-lived environment. If the Grid runs against a staging environment, a scheduled refresh clears it along with everything else. The guide to staging environment test data covers refreshing staging from a seed.
Running Selenium Grid parallel tests
These settings were checked with API-only tests. The browser suite
itself has only run one session at a time (see the note at the top).
JUnit runs the rows concurrently when parallel execution is enabled
in src/test/resources/junit-platform.properties:
junit.jupiter.execution.parallel.enabled=true
junit.jupiter.execution.parallel.mode.default=concurrent
junit.jupiter.execution.parallel.config.strategy=fixed
junit.jupiter.execution.parallel.config.fixed.parallelism=4
junit.jupiter.execution.parallel.config.fixed.max-pool-size=4
The last line matters for Grid. parallelism alone isn't a hard
limit. JUnit's default fork-join pool can add threads when tests
block. In a check with blocking API-only tests, the same rows ran 8 at
a time with only parallelism=4 set, and at most 4 once
max-pool-size=4 was added. With a Grid that has four slots, the
extra tests would queue for a browser session and eat into their own
timeouts. Set both to the number of sessions your Grid offers.
JUnit 6.1 also has an experimental thread-pool executor,
junit.jupiter.execution.parallel.config.executor-service=worker_thread_pool,
as an alternative to the fork-join pool. It wasn't tested here.
For a single-machine Grid, the standalone server is one jar:
java -jar selenium-server-4.53.0.jar standalone --max-sessions 4
SELENIUM_GRID_URL=http://localhost:4444 \
APP_URL=http://localhost:3000 mvn test
--max-sessions defaults to the number of available processors. In
Selenium 4 the Grid URL is the server root, so the /wd/hub suffix
from Selenium 3 isn't needed. Two Grid-specific details affect test
data:
APP_URLhas to work from the Grid node. Seeding runs in the test JVM, but the browser runs on the node. When nodes run in Docker or on other machines,localhostpoints at the node itself, so use an address both can reach.- Isolation comes from the data, not the scheduler. Grid assigns sessions to whichever node has a free slot, so the order and placement of rows changes from run to run. The rows are built so they don't depend on order or placement: no two share a team, an admin or an email.
Reproducing a failure from the logged seed
To show a failure, loosen the app's email check so it accepts any
string with a dot. Only the planted bad-email row fails, and the
message names everything needed to reproduce it (wrapped to fit):
[ERROR] Tests run: 10, Failures: 1, Errors: 0, Skipped: 0
[ERROR] InviteMemberTest.inviteMember:85 seed 2207,
tag 3f9a1c2e-bad-email, page says []
==> expected: <[email]> but was: <[]>
The tag ends in the row key, so the failing row is bad-email even
though surefire's console summary doesn't show display names. The
seed says which fixture produced it. On a pinned-seed run, that's the
committed file, and the failure reproduces with a plain mvn test.
The seed becomes essential on a scheduled job that varies the data.
Running scripts/regen-invites.sh random before mvn test gives the
valid rows new names and emails every night, while the planted rows
keep their keys and their purpose. When it fails, the seed is in the
script's output and in the assertion message, and this rebuilds the
exact file locally:
scripts/regen-invites.sh 48213 # the seed from the failing job
mvn test
The run id doesn't need to match. It only keeps data apart, and a new one gives the rerun fresh emails in the shared environment. The scheduled job shouldn't commit its fixture. Everyday runs stay on the pinned seed.
The same approach with Python and pytest
Nothing here depends on Java. In Python, the fixture loads with
json.load, and @pytest.mark.parametrize with
ids=lambda row: row["key"] gives each row its key as a test id. A
fixture that yields a webdriver.Chrome or a
webdriver.Remote(command_executor=grid_url, options=options) and
quits it afterwards plays the role of @BeforeEach and @AfterEach.
requests does the API seeding, and pytest-xdist's -n 4 runs rows
in parallel. The tag works the same way, built from a run id and the
row key. The pytest test data post covers
loading a committed JSON file into fixtures and parametrize cases in
detail.
FAQ
How do I do data-driven testing in Selenium?
Selenium itself has no data-driven feature; it only drives the
browser. The test framework supplies the rows: JUnit Jupiter with
@ParameterizedTest and @MethodSource or @CsvFileSource, TestNG
with @DataProvider, or pytest with @pytest.mark.parametrize. Keep
the rows in a JSON or CSV file, load them in the data source method,
and the framework runs the same WebDriver test once per row, each
reported under its own name.
How do I read JSON test data in Selenium Java tests?
Put the JSON file under src/test/resources and read it with
Jackson's ObjectMapper from the classpath, mapping it onto Java
records that mirror its structure. Jackson 2.12 and later deserialize
records directly. Load the file once, in a static field, and hand each
row to a JUnit @ParameterizedTest through a @MethodSource method.
How do I avoid test data conflicts when running Selenium tests in parallel?
Give every test its own backend state, created through the app's API just before the browser opens, rather than sharing one login or record between tests. Make every value that must be unique, such as emails and names, unique per run and per test, for example by adding a run id and the row key to each email. Then cap test parallelism at the number of sessions your Selenium Grid offers.
Should Selenium tests create test data through the UI?
Only for the flow the test is actually about. Creating accounts, teams or orders by clicking through forms costs several page loads per test, multiplies with parallel sessions and fails for reasons unrelated to the feature under test. Create that state with HTTP calls to the app's API, then use the browser for the one form or page being tested.
How do I set a cookie in Selenium before loading a page?
You can't add a cookie for a site the browser isn't on yet. Selenium
rejects it with an invalid cookie domain error. Navigate to a cheap
page on the same domain first, such as robots.txt, call
driver.manage().addCookie() with the session cookie, then navigate
to the page you want to test, which loads already logged in.
Is there a JsonFabrica Selenium package or plugin?
No. JsonFabrica is a plain JSON-over-HTTP API, with no Selenium plugin, Java or Python library, or database connector. The only npm package is the MCP server for AI coding agents, which has nothing to do with test runners. A small curl-and-jq regen script sends a template and a seed to the API and writes the generated JSON into your repository. Your Selenium tests read that committed file and never call JsonFabrica.
Generated Selenium test data gives every WebDriver row a complete,
valid input that fails only for its planted reason, and committing it
keeps runs fast and offline. Rendering a raw template with a seed and
params is a single call to the JsonFabrica API, documented with its
{ data, meta } response in the
templates API reference.
Generate realistic test data with JsonFabrica
Describe the shape of your data once, then generate as many fresh, realistic JSON documents as you need via a simple API call.