← Back to home

Test data generator

Generate consistent commerce-style users, orders, line items, and card metadata for QA and CI. Same seed means the same rows every run.

Synthetic data only

Phones and emails are fictional (.test domains). Card fields are fake tokens — not for real PII, SMS gateways, or production.

Configure

Dataset

Adjust volume and shape; the preview on the right updates immediately.

Advanced — template ID & version

Locks randomness for repeatable CI.

10–5,000 profiles.

Include in dataset

Output

Export

Choose a table, preview below, then download JSON or CSV for that table. Use All tables for the full JSON bundle.

Users

0

Orders

0

Line items

0

Cards

0

Table to export

One table per file for JSON/CSV. Use All tables for everything in one JSON.

Preview · users · first 6 rows0 rows total
[]
SQL & Playwright

SQL table names (optional)

Playwright / TypeScript fixture

REST API (CI)

POST /api/test-data/generate with JSON, or GET with query params.

POST body

{
  "templateId": "tdg-commerce-v1",
  "templateVersion": "1.0.0",
  "locale": "india",
  "seed": 20260504,
  "size": 200,
  "maxOrdersPerUser": 4,
  "includeCards": true,
  "includeLineItems": true,
  "includeEdgeCases": true,
  "entity": "users"
}

curl (GET)

curl -s "/api/test-data/generate?seed=20260504&size=100&locale=india&entity=all&templateId=tdg-commerce-v1&maxOrdersPerUser=4"
JSON Schema samples

Separate from the commerce preset: paste a schema with type: "object" and properties for ad-hoc mock rows.

[
  {
    "requestId": "id_640993",
    "amount": 44884,
    "currency": "EUR",
    "paid": true
  },
  {
    "requestId": "id_257332",
    "amount": 52706,
    "currency": "INR",
    "paid": true
  },
  {
    "requestId": "id_878927",
    "amount": 47284,
    "currency": "INR",
    "paid": true
  },
  {
    "requestId": "id_771163",
    "amount": 30769,
    "currency": "INR",
    "paid": true
  },
  {
    "requestId": "id_717950",
    "amount": 61101,
    "currency": "INR",
    "paid": false
  },
  {
    "requestId": "id_853603",
    "amount": 5215,
    "currency": "USD",
    "paid": false
  },
  {
    "requestId": "id_340260",
    "amount": 6271,
    "currency": "INR",
    "paid": true
  },
  {
    "requestId": "id_577302",
    "amount": 2809,
    "currency": "INR",
    "paid": true
  }
]

API: POST with mode: "schema" to /api/test-data/generate.

How it works

Deterministic factories for CI-friendly datasets.

  1. 01

    Pick preset

    Commerce packs or paste JSON Schema.

  2. 02

    Dial knobs

    Locale, seed, counts—edge switches too.

  3. 03

    Generate rows

    Deterministic RNG for stable reruns.

  4. 04

    Preview slice

    Spot-check payloads before piping.

  5. 05

    Grab exports

    CSV · SQL stubs · fixture snippets.