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 type | What to check |
|---|---|
| Normal | A valid action produces the expected result. |
| Boundary | Values exactly at, just below, and just above a limit. |
| Invalid | Empty, whitespace-only, or unsupported input. |
| Repeated | Multiple clicks or submissions do not duplicate work unexpectedly. |
| Lifecycle | Initial load, refresh, saved data, and reset behave as intended. |
| Failure, if applicable | A failed request or unavailable resource produces useful feedback. |
| Usability | Keyboard 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.