Software Test Oracle
Jump to navigation
Jump to search
A Software Test Oracle is a test oracle that determines whether an observed output or behavior of a software system during a software testing task is correct or acceptable with respect to a specified, derived, or implicit correctness criterion.
- AKA: Software Testing Oracle, Program Test Oracle.
- Context:
- It can (typically) separate observation (capturing a program output, rendered page, or execution trace) from judgment (deciding pass or fail against an authoritative software correctness criterion).
- It can (typically) be automated (such as executable software assertions, formal invariants, or reference-model comparisons) or manual (such as human domain-expert inspection of software outputs against requirements or visual exemplars).
- It can (typically) confront the "oracle problem" when determining expected behavior for complex, non-deterministic, graphical, or knowledge-intensive software systems is costly, ambiguous, or undecidable (Weyuker, 1982).
- It can (often) rely on partial or indirect checks — such as metamorphic relations, differential comparison across independent implementations, or crash and invariant monitors — when a complete exact expected output is unavailable.
- It can (often) operate across multiple verification surfaces in a verification process, such as evaluating both saved wikitext source and live rendered HTML output produced by wiki publishing software during rendered page verification.
- It can range from being a Specified Software Test Oracle to being an Implicit Software Test Oracle, depending on how explicitly its correctness criterion is encoded (ordered editorially across the specified, derived, and implicit oracle categories of Barr et al., 2015, with Derived Software Test Oracles inferred from baselines or pseudo-oracles).
- It can range from being an Automated Software Test Oracle to being a Human Software Test Oracle, depending on its degree of automation.
- It can range from being a Sound Complete Software Test Oracle to being a Partial Heuristic Software Test Oracle, depending on its decision coverage.
- …
- Example(s):
- Specified Software Test Oracles, such as:
- Executable software assertions or postcondition checks encoded from formal specifications inside an automated software testing system.
- Derived Software Test Oracles, such as:
- A differential pseudo-oracle that feeds identical inputs to two independently written program implementations and flags divergent outputs as potential software bugs.
- A regression baseline comparison checking rendered HTML link state and layout invariants emitted by wiki rendering software during rendered page verification.
- Implicit Software Test Oracles, such as:
- A runtime memory-sanitizer or crash detector that flags uncaught exceptions, segmentation faults, or buffer overflows during automated fuzz testing without requiring domain-specific expected outputs.
- Human Software Test Oracles, such as:
- A domain specialist inspecting outputs produced by a content-generation or graphical rendering software system against a rubric and reference exemplar during a software testing task.
- …
- Specified Software Test Oracles, such as:
- Counter-Example(s):
- Hardware Test Oracle, which supplies pass/fail verdicts for physical or silicon hardware rather than a software system.
- Clinical Diagnostic Gold Standard, which serves as a medical reference test rather than a software testing task verdict mechanism.
- Test Case, which specifies test inputs, execution steps, and expected outputs rather than the mechanism that judges an observed run.
- Verification Process, which orchestrates end-to-end verification checks rather than supplying the individual pass/fail judgment.
- Oracle Machine, which is a theoretical abstract machine in computability theory rather than a software testing verdict mechanism.
- See: Test Oracle, Software-based System Testing Task, Software Testing System, Test Case, Software Assertion, Verification Process, Rendered Page Verification, Acceptance Criteria, Automated Software Testing System, Error Seeding Technique, Software Bug, Oracle Machine.
References
2015
- Barr, Earl T., Mark Harman, Phil McMinn, Muzammil Shahbaz, and Shin Yoo. (2015). "The Oracle Problem in Software Testing: A Survey." IEEE Transactions on Software Engineering, 41(5), 507–525. doi:10.1109/TSE.2014.2372785. Retrieved 2026-11-28.
- NOTE: Surveys specified, derived (including pseudo-oracles), and implicit oracles, the human oracle problem, and the software test oracle problem.
1982
- Weyuker, Elaine J. (1982). "On Testing Non-Testable Programs." The Computer Journal, 25(4), 465–470. doi:10.1093/comjnl/25.4.465. Retrieved 2026-11-28.
- NOTE: Foundational analysis of programs lacking a complete, economical exact oracle and the role of partial and pseudo-oracles.