~15 min

Anatomy of a test case

Precondition, steps, data and expected result.

What is a test case?

A test case is a set of conditions, inputs and expected results designed to verify a specific functionality. A good case is reproducible: any tester can run it and get the same result.

Components of a test case
FieldDescription
ID and titleUnique identifier and descriptive name
PreconditionState required before starting
StepsActions to perform in order
Test dataSpecific input values
Expected resultWhat should happen if it works

The expected result must be defined BEFORE running the test. If you decide it after seeing the result, you lose objectivity.

QuestionToca para voltear

What is a precondition in a test case?

When should the expected result of a test case be defined?

¿Quieres guardar tu progreso?

Crea una cuenta gratis para guardar tu avance, ganar puntos e insignias y desbloquear los campus de ISTQB y Automatización.

Crear cuenta gratis
Siguiente Lección
Anatomy of a test case | PlayQAcademy