docs / familias / tc

tc — Software test cases

Manual or automated test cases: module, title, precondition, ordered steps, expected result, priority, type and automation flag.

Dominio
software engineering / QA
Versión
1
Padre
— (raíz)
Clave de registros
cases
Separador de lista
,
Archivo
forks/tc/contract.json

Campos por posición

#TipoDescripciónParte
idstr (unique: True)núcleo
modulestrnúcleo
titlestrnúcleo
preconditionstrnúcleo
stepslist (min: 1 · max: 20)núcleo
expectedstrnúcleo
priorityenum (valores: low, medium, high, critical)núcleo
typeenum (valores: functional, integration, performance, security, usability, regression)núcleo
automatedboolnúcleo

Ejemplo válido

tc|n=12|d=20260603|l=en|t=SIMA release 1.2 regression|proj=SIMA
TC-001|auth|Login with valid credentials|User registered and active|open /login,enter valid email and password,click Sign in|Dashboard is shown and session cookie is set|high|functional|true
TC-002|auth|Login with wrong password|User registered|open /login,enter valid email and wrong password,click Sign in|Error message; no session created|high|functional|true
TC-003|auth|Password reset email|User registered|open /reset,submit registered email|Reset email delivered within 60 s|medium|integration|false
TC-004|courses|Create course|Logged-in student|open /courses/new,fill name\, period and topics,save|Course appears in dashboard|high|functional|true
TC-005|lessons|Upload audio lecture|Course exists; credits available|open /api/new,select course and upload 20 MB mp3,confirm credit estimate|LessonJob created with status queued|high|functional|true
TC-006|lessons|Reject unsupported file|Course exists|open /api/new,upload .exe file|Validation error; nothing stored|medium|security|true
TC-007|pipeline|Transcription completes|Job queued; Whisper available|run worker,wait for stage transcribe|Transcript stored; stage advances to generate|high|integration|true
TC-008|pipeline|.mini bank parses|Generation stage finished|fetch job output,run parser|All records valid; n equals record lines|high|functional|true
TC-009|pipeline|Incoherent items repaired|Bank with declarative items|run coherence filter,run repair|Items repaired or excluded with trace|medium|functional|true
TC-010|quiz|Adaptive quiz updates theta|Lesson ready; profile exists|start quiz with 6 items,answer all|theta and SE updated; XP awarded|high|functional|true
TC-011|quiz|Quiz under load|50 concurrent students|start 50 quizzes,answer concurrently|p95 latency below 2 s; no errors|medium|performance|false
TC-012|admin|Credit ledger consistency|Several jobs processed|open admin ledger,sum entries|Ledger total equals profile balance|low|functional|false

Cárgalo en el playground o valida con mini validate forks/tc/fixtures/valid.mini.

Notas de la familia

.mini-tc — Software test cases#

Prefix: tc Version: 1 Parent:Domain: software engineering / QA

Manual or automated test cases: module, title, precondition, ordered steps, expected result, priority, type and automation flag.

Record layout#

id:str | module:str | title:str | precondition:str | steps:list<str>[1..20] | expected:str | priority:enum{low|medium|high|critical} | type:enum{functional|integration|performance|security|usability|regression} | automated:bool
# field type notes
1 id str core
2 module str core
3 title str core
4 precondition str core
5 steps list<str>[1..20] core
6 expected str core
7 priority enum{low|medium|high|critical} core
8 type enum{functional|integration|performance|security|usability|regression} core
9 automated bool core

Header keys#

key type required description
d str no generation date YYYYMMDD
l str no language code
t str no
proj str no
n int yes number of records
v int no contract version

Example#

tc|n=12|d=20260603|l=en|t=SIMA release 1.2 regression|proj=SIMA
TC-001|auth|Login with valid credentials|User registered and active|open /login,enter valid email and password,click Sign in|Dashboard is shown and session cookie is set|high|functional|true
TC-002|auth|Login with wrong password|User registered|open /login,enter valid email and wrong password,click Sign in|Error message; no session created|high|functional|true
…

Fixtures#

fixtures/valid.minifixtures/canonical.json (round-trip), fixtures/escaping.minifixtures/escaping.json, and the negative cases bad_count.mini, bad_arity.mini, bad_type.mini.

Prompt block#

Generate the transferable specification with mini prompt tc.