Multiple choice technology testing

A test case has which of the following elements?

  1. A test environment description and test instructions.

  2. A set of inputs, execution preconditions, and expected outcomes.

  3. A test plan, test inputs, and logging instructions.

  4. Execution instructions and a function description to determine correct outcome.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A test case is formally defined as a set of inputs, execution preconditions, and expected outcomes. This definition captures the essential elements: what you put into the system (inputs), what state the system must be in (preconditions), and what should happen (expected outcomes). Option A is incomplete, while options C and D include elements not part of the standard test case definition.