Testing Application Behaviour

Testing compares actual behaviour with an expected result. Use the requirements to decide what to check, then repeat important checks after fixing a bug or changing shared code.

Cover different conditions

Test typeWhat to check
NormalA valid action produces the expected result.
BoundaryValues exactly at, just below, and just above a limit.
InvalidEmpty, whitespace-only, or unsupported input.
RepeatedMultiple clicks or submissions do not duplicate work unexpectedly.
LifecycleInitial load, refresh, saved data, and reset behave as intended.
Failure, if applicableA failed request or unavailable resource produces useful feedback.
UsabilityKeyboard interaction, labels, focus, readable content, and narrow layouts.

For each test, record its starting state, action, expected result, actual result, and pass/fail outcome. Reset the starting conditions when a test depends on them. Do not clear unrelated Local Storage keys.

Retest after a fix

Repeat the failing case, then check nearby cases that use the changed function. This is regression testing: checking that a fix has not broken previously working behaviour.

Also test the published site. Paths, filenames, and saved data may behave differently from your local setup. Test results should describe what you actually checked.

Checklist

  • [ ] Every required interaction has a normal test.
  • [ ] Important boundaries and invalid inputs are covered.
  • [ ] Repeated actions and refresh behaviour are checked.
  • [ ] Relevant failure messages are useful.
  • [ ] Keyboard and narrow-screen behaviour are checked.
  • [ ] Fixes and the published site have been retested.