Functional Testing
Cheat sheet · https://pcornel.dk/topic.php?topic=5928
Answer
Functional Testing verifies automation behavior against externally observable requirements and use cases without depending on internal implementation structure.
Remember
- Requirement behavior passes ≠ nonfunctional qualities are acceptable.
- Expected output text ≠ effective target state necessarily correct.
- Happy path pass ≠ validation or error paths correct.
- One role/user passes ≠ authorization behavior for other roles correct.
First checks
- Functional tests of outcomes (service reachable, config applied) — behaviour
- Test data sets — inputs
- Pass/fail criteria — clarity
Commands
pytest -q <test-path>- Read-only/validation observation for pass/fail result and assertion/error output for the explicitly selected test scope.
Verify in this order
automation run → outcome tests → pass/fail
Where it usually breaks
Functional Testing proves named functional requirements under the tested conditions; it does not prove performance, resilience, security posture or all integrations.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Functional Testing testing proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / oracle | Requirement, case, expected result and exercised scope are explicit | A generic green status exists without a trustworthy oracle or coverage boundary |
| Fixture / environment | Data, dependencies and environment versions are reproducible | Shared state, floating versions or stale fixtures make results non-reproducible |
| Effective outcome | Authoritative state/read-back and service-relevant evidence match the expected result | Tool/test/validator success substitutes for effective target or workload proof |
| Limits / next action | Coverage limits, unknowns and failures drive the next narrower check | Unknown evidence becomes pass, retries hide failures or broad success is inferred from one check |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5928