Lesson 63 — Data Sources: Sheets, Databases & Generated Data · Practical QA
LESSON VIEW
A-05 · ADVANCED · PRACTICAL QA

Lesson 63 — Data Sources: Sheets, Databases & Generated Data

Objective: Where test data lives is an architecture decision. Choose per case type — and be able to defend the choice.

⏱ ≈53 min full lesson · English edition — Español · العربية · বাংলা in translation

⚡ Key Points

  • Four homes, four owners: FRAMEWORK-INTERNAL (engineer owns it; versioned; non-coders can't grow it).
  • Validate the sheet like an API: a bad row fails AT LOAD with its row number, not mid-run as a mystery.
  • Legit DB uses: VERIFICATION (“the order the UI placed exists, with these totals”) and STATE SELECTION (“find a real active listing”).
  • Static fixtures rot — the test user gets edited, dates slide into the past, parallel runs collide.
  • Small suite, technical owner → internal.

📖 Read

Four homes, four owners: FRAMEWORK-INTERNAL (engineer owns it; versioned; non-coders can't grow it). SHEET (business owns it; anyone adds a row; drifts, unvalidated until runtime). DATABASE (the product's world; real state; couples tests to schema). GENERATED/FACTORIES (built fresh per run; needs honest domain modeling).

Validate the sheet like an API: a bad row fails AT LOAD with its row number, not mid-run as a mystery. IDs are forever — never key anything to row POSITION. And one case, one home: a case living in both sheet and code WILL diverge.

Legit DB uses: VERIFICATION (“the order the UI placed exists, with these totals”) and STATE SELECTION (“find a real active listing”). Never CREATION of what the test claims the product created — that's testing your SQL, not their software. Read-only credentials; schema knowledge in ONE module.

Static fixtures rot — the test user gets edited, dates slide into the past, parallel runs collide. FACTORIES build fresh entities per run from a recipe, uniquely marked (timestamp/run ID) so cleanup (A-03) can find everything by its marker. Your suite's “QA Tester” / qa@example.com / 5551234567 is the humble one-field version.

Small suite, technical owner → internal. Business-owned cases → sheet. Verifying what the system STORED → database, read-only. Stateful, parallel, repeated → factories. The sin isn't the source — it's the accident.

Inventory one suite's data: for each case, name source + owner. Flag any case whose data lives in TWO places, and any factory-shaped need being met by a rotting static fixture. That's your data-debt list.

Data decided deliberately. Next: API testing inside the suite — setup, verification, hybrids.