~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.

QuestionTap to flip

What is a precondition in a test case?

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

Want to save your progress?

Create a free account to save your progress, earn points and badges, and unlock the ISTQB and Automation campuses.

Create free account
Next Lesson