My Day✳All blog articles ↗

Choose fictional cases for checking a rule

Write the expected result before running a trial.

Choose cases by differences in their input conditions. One successful ordinary example does not test every restriction. Record expectations first, then compare them with observations; a small set does not establish complete coverage.

1 expected acceptance and 2 expected rejections
1 expected acceptance and 2 expected rejections

What to do

  1. State the full rule and define what counts as a filled or selected value.
  2. Choose an ordinary case and isolated violations, labelling each expected outcome beforehand.
  3. After a trial, save actual results and separately list combinations not yet tested.

Example

Fictional form: accept a nonempty title with category A. Cases: “Sheet/A” accepted; empty title/A rejected; “Sheet/no category” rejected. That gives 1 expected acceptance and 2 expected rejections. These are expectations, not execution results.

My Day · Windows

My Day can store cases and expectations as text. It does not automatically run this test set.

Buy My Day for Windows ↗