The Oracle Problem in Software Testing: A Survey
Open accessThe DOI matches its Crossref record; 218 of the 236 references it cites were found in a registry or an index.
Abstract
Testing involves examining the behaviour of a system in order to discover potential faults. Given an input for a system, the challenge of distinguishing the corresponding desired, correct behaviour from potentially incorrect behavior is called the “test oracle problem”. Test oracle automation is important to remove a current bottleneck that inhibits greater overall test automation. Without test oracle automation, the human has to determine whether observed behaviour is correct. The literature on test oracles has introduced techniques for oracle automation, including modelling, specifications, contract-driven development and metamorphic testing. When none of these is completely adequate, the final source of test oracle information remains the human, who may be aware of informal specifications, expectations, norms and domain specific information that provide informal oracle guidance. All forms of test oracles, even the humble human, involve challenges of reducing cost and increasing benefit. This paper provides a comprehensive survey of current approaches to the test oracle problem and an analysis of trends in this important area of software testing research and practice.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures











Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“The metric depends on rigorous testing, which is currently limited by the lack of test oracles [11].”
From A 2030 Roadmap for Software Engineering (2025) · cites this paper as [11]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Statecharts: a visual formalism for complex systems
Harel, D. (1987) · Science of Computer Programming · doi:10.1016/0167-6423(87)90035-9 · Cited by 6,751 · cited 2×
“A wide variety of state transition systems exist, including finite state machines [111], Mealy/Moore machines [111], I/O Automata [117], Labeled Transition Systems [180], SDL [54], Harel Statecharts [81], UML state machines [28], X-Machines [95], [96], Simulink/Stateflow [179] and PROMELA [97].”
BackgroundAn Axiomatic Basis for Computer Programming
Hoare, T. (1968) · Cited by 4,330
An axiomatic basis for computer programming
Hoare, C. A. R. (1969) · Communications of the ACM · doi:10.1145/363235.363259 · Cited by 4,002
Holzmann, G. J. (1997) · IEEE Transactions on Software Engineering · doi:10.1109/32.588521 · Cited by 3,803 · cited 2×
“[96], Simulink/Stateflow [179] and PROMELA [97].”
Metaheuristics in combinatorial optimization: Overview and conceptual comparison
Blum, C., & Roli, A. (2003) · ACM Computing Surveys · doi:10.1145/937503.937505 · Cited by 3,236 · cited 1×
“[1] combine a natural language model and metahueristics, strategies that guide a search process [25], to”
BackgroundSymbolic execution and program testing
King, J. C. (1976) · Communications of the ACM · doi:10.1145/360248.360252 · Cited by 3,031 · cited 1×
“For instance, the problem of automatically generating test inputs has been the subject of research interest for nearly four decades [46], [107].”
BackgroundBaader, F., & Nipkow, T. (1998) · Cambridge University Press eBooks · doi:10.1017/cbo9781139172752 · Cited by 2,466
Metaheuristics in Combinatorial Optimization
Gendreau, M., & Potvin, J.-Y. (2005) · Annals of Operations Research · doi:10.1007/s10479-005-3971-7 · Cited by 2,338
Learning regular sets from queries and counterexamples
Angluin, D. (1987) · Information and Computation · doi:10.1016/0890-5401(87)90052-6 · Cited by 2,114 · cited 1×
“Most work has applied L , a wellknown learning algorithm, to learn a black-box system B as a finite state machine with n states [7].”
MethodDART: directed automated random testing
Godefroid, P., Klarlund, N., & Sen, K. (2005) · ACM SIGPLAN Notices · doi:10.1145/1064978.1065036 · Cited by 2,067
Research works printed but not linked: 6
- A. Avizienis and L. Chen, "On the implementation of N-version programming for software fault-tolerance during execution," in Proc. 1st Int. Comput. Softw. Appl. Conf., 1977, pp. 149-155.
- P. McMinn, M. Stevenson, and M. Harman, "Reducing qualita- tive human oracle costs associated with automatically generated test data," in Proc. Int. Workshop Softw. Test Output Validation, Jul. 2010, pp. 1-4. · DOI
- A. J. Offutt, J. Pan, and J. M. Voas, "Procedures for reducing the size of coverage-based test sets," in Int. Conf. Testing Comput. Softw., 1995, pp. 111-123.
- M. Shahbaz, P. McMinn, and M. Stevenson, "Automatic genera- tion of valid and invalid test data for string validation routines," Sci. Comput. Programm., vol. 97, no. 4, pp. 405-425, 2015.
- J. M. Spivey, Z Notation-a Reference Manual, 2nd ed. Englewood Cliffs, NJ, USA: Prentice-Hall, 1992.
- G. V. Bochmann, C. He, and D. Ouimet, "Protocol testing using automatic trace analysis," in Proc. Can. Conf. Elect. Comput. Eng., 1989, pp. 814-820.
Cited by
Machine Learning Testing: Survey, Landscapes and Horizons
Zhang, J. M., Harman, M., Ma, L., & Liu, Y. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2962027 · Cited by 897
Self-citationMetamorphic Testing: A Review of Challenges and Opportunities
Chen, T. Y., Kuo, F.-C., Liu, H., Poon, P.-L., Towey, D., Tse, T. H., & Zhou, Z. Q. (2019) · ACM Computing Surveys · doi:10.1145/3143561 · Cited by 665
“Complementary to previous surveys on the oracle problem [4, 68, 71, 72] and MT [34, 42, 81], we attempt to summarize and analyze results based on related studies from a different perspective, providing an in-depth discussion of what has really been achieved and what still remains to be done.”
Large language models for software engineering: survey and open problems
Fan, A., Gokkaya, B., Harman, M., Lyubarskiy, M., Sengupta, S., Yoo, S., & Zhang, J. M. (2023) · 2023 IEEE/ACM International Conference on Software Engineering: Future of Software Engineering (ICSE-FoSE) · doi:10.1109/icse-fose59343.2023.00008 · Cited by 650
“3) Test Correctness: Traditional software test generation has suffered from the Oracle Problem [6], i.e., they are inhibited by the lack of an automated oracle that determines whether a test outcome is correct.”
BackgroundMethodSelf-citationTrustworthy AI: From Principles to Practices
Li, B., Qi, P., Liu, B., Di, S., Liu, J., Pei, J., Yi, J., & Zhou, B. (2023) · ACM Computing Surveys · doi:10.1145/3555803 · Cited by 612
“Similar to canonical software testing, the problem to automatically generate the expected ground truth, known as the oracle problem [34], also occurs in the AI software testing scenario.”
MethodSoftware Testing With Large Language Models: Survey, Landscape, and Vision
Wang, J., Huang, Y., Chen, C., Liu, Z., Wang, S., & Wang, Q. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3368208 · Cited by 573
“A test oracle is a source of information about whether the output of a software system (or program or function or method) is correct or not [136].”
A Survey on Metamorphic Testing
Segura, S., Fraser, G., Sanchez, A. B., & Ruiz-Cortes, A. (2016) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2016.2532875 · Cited by 563
“This problem is referred to as the oracle problem and it is recognised as one of the fundamental challenges of software testing [1], [2], [3], [4].”
BackgroundMethodSapienz: multi-objective automated testing for Android applications
Mao, K., Harman, M., & Jia, Y. (2016) · Proceedings of the 25th International Symposium on Software Testing and Analysis · doi:10.1145/2931037.2931054 · Cited by 541
“It uses a standard, simple-but-effective, default test oracle [22] that regards any input that reveals a crash to be a fault-revealing test sequence.”
MethodSelf-citationLarge Language Models for Software Engineering: Survey and Open Problems
Fan, A., Gokkaya, B., Harman, M., Lyubarskiy, M., Sengupta, S., Yoo, S., & Zhang, J. M. (2023) · arXiv · doi:10.48550/arxiv.2310.03533 · Cited by 523
“3) Test Correctness: Traditional software test generation has suffered from the Oracle Problem [6], i.e., they are inhibited by the lack of an automated oracle that determines whether a test outcome is correct.”
BackgroundMethodSelf-citationMutation Testing Advances: An Analysis and Survey
(2019) · Advances in Computers · doi:10.1016/bs.adcom.2018.03.015 · Cited by 425
Self-citationFairness testing: testing software for discrimination
Galhotra, S., Brun, Y., & Meliou, A. (2017) · Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering · doi:10.1145/3106237.3106277 · Cited by 405
“While prior work has tackled the oracle problem [10, 26, 30] typically using inferred pre- and post-conditions or documentation, our oracle is more precise and easier to compute, but is only applicable to fairness testing.”
BackgroundA survey of the use of crowdsourcing in software engineering
Mao, K., Capra, L., Harman, M., & Jia, Y. (2017) · Journal of Systems and Software · doi:10.1016/j.jss.2016.09.015 · Cited by 385
“5) Oracle Problem: An oracle is typically needed to de- 1200 termine the required output of a program for a given input (Weyuker, 1982; Barr et al., 2015).”
BackgroundSelf-citationAutomatic Software Repair: A Survey
Gazzola, L., Micucci, D., & Mariani, L. (2019) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2017.2755013 · Cited by 327
Automatic Software Repair: A Bibliography
Monperrus, M. (2019) · ACM Computing Surveys · doi:10.1145/3105906 · Cited by 321
“There are more formal definitions of specification and oracle in the literature [169, 11] but they do not bring much in the context of this paper.”
BackgroundAutomated Unit Test Improvement using Large Language Models at Meta
Alshahwan, N., Chheda, J., Finogenova, A., Gokkaya, B., Harman, M., Harper, I., Marginean, A., Sengupta, S., & Wang, E. (2024) · Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering · doi:10.1145/3663529.3663839 · Cited by 144
“Without an automatable test oracle [7], TestGen-LLM cannot automatically determine whether a failing test has found a bug, or whether it merely contains an incorrect test assertion.”
BackgroundMethodSelf-citationAn empirical study on TensorFlow program bugs
Zhang, Y., Chen, Y., Cheung, S.-C., Xiong, Y., & Zhang, L. (2018) · Proceedings of the 27th ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3213846.3213866 · Cited by 304
“[1] studied test oracles in software testing including probabilistic test oracle.”
MethodRESTful API Automated Test Case Generation with EvoMaster
Arcuri, A. (2019) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3293455 · Cited by 236
“When automatically generating test cases with a white-box approach—for example, trying to maximize statement coverage—there is the problem of what to use as an automated oracle [11].”
BackgroundMethodUnderstanding the Blockchain Oracle Problem: A Call for Action
Caldarelli, G. (2020) · Information · doi:10.3390/info11110509 · Cited by 220
“According to Barr et al. [52], the problem arises when test oracles are unable to run in complete automation.”
MethodApplication Programming Interface (API) Research: A Review of the Past to Inform the Future
Ofoeda, J., Boateng, R., & Effah, J. K. (2019) · International Journal of Enterprise Information Systems · doi:10.4018/ijeis.2019070105 · Cited by 212
Achievements, Open Problems and Challenges for Search Based Software Testing
Harman, M., Jia, Y., & Zhang, Y. (2015) · 2015 IEEE 8th International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst.2015.7102580 · Cited by 209
Self-citationMachine learning applied to software testing: A systematic mapping study
Durelli, V. H. S., Durelli, R. S., Borges, S. S., Endo, A. T., Eler, M. M., Dias, D. R. C., & Guimaraes, M. P. (2019) · IEEE Transactions on Reliability · doi:10.1109/tr.2019.2892517 · Cited by 207
“This conundrum is referred to as the test oracle problem [37].”
BackgroundLarge Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproduction
Kang, S., Yoon, J., & Yoo, S. (2023) · 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE) · doi:10.1109/icse48619.2023.00194 · Cited by 204
“Similar to our work, some techniques focus on reproducing problems reported by users: a commonly used implicit oracle is that the program should not crash [32].”
BackgroundResultSelf-citationA learning-to-rank based fault localization approach using likely invariants
B. Le, T.-D., Lo, D., Le Goues, C., & Grunske, L. (2016) · Proceedings of the 25th International Symposium on Software Testing and Analysis · doi:10.1145/2931037.2931049 · Cited by 200
“, [10]) – can be used in conjunction with an automated test generation technique to create new labelled test cases to enrich the input of an SBFL technique, including ours.”
Metamorphic testing of driverless cars
Zhou, Z. Q., & Sun, L. (2019) · Communications of the ACM · doi:10.1145/3241979 · Cited by 200
“An oracle is a mechanism that testers use to determine whether the outcomes of test case executions are correct [2, 24].”
BackgroundChekam, T. T., Papadakis, M., Le Traon, Y., & Harman, M. (2017) · 2017 IEEE/ACM 39th International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2017.61 · Cited by 151
“Finally, each test ‘case’ is essentially a test input that needs a test oracle [44], in order to determine its corresponding output.”
BackgroundSelf-citationTesting RESTful APIs: A Survey
Golmohammadi, A., Zhang, M., & Arcuri, A. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3617175 · Cited by 200
“Examples include search-based test case generation [48], search based mutation testing [149], software-testing education [98], test case selection and prioritization using machine learning [142], software testing effort estimation [72], software robustness assessment [115], oracle problem in software testing [68], fla…”
MethodFairness Testing: A Comprehensive Survey and Analysis of Trends
Chen, Z., Zhang, J. M., Hort, M., Harman, M., & Sarro, F. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3652155 · Cited by 204
“Given an input for a software system, the challenge of distinguishing the corresponding desired behaviour from the potentially incorrect behavior is called the “test oracle problem” [123].”
BackgroundMethodSelf-citationFrom Start-ups to Scale-ups: Opportunities and Open Problems for Static and Dynamic Program Analysis
Harman, M., & O'Hearn, P. (2018) · 2018 IEEE 18th International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam.2018.00009 · Cited by 151
“Of course, it could be that the tool would initially use an implicit oracle [14] (such as ‘applications should not crash’) and, only some time after deployment, seek additional assertions from authors, thereby deferring the friction from inertial friction to on-going”
BackgroundMethodInfluentialSelf-citationSapFix: Automated End-to-End Repair at Scale
Marginean, A., Bader, J., Chandra, S., Harman, M., Jia, Y., Mao, K., Mols, A., & Scott, A. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1109/icse-seip.2019.00039 · Cited by 137
“Developers are a useful final oracle: Automated oracles [28], and testing and verification will hopefully advance in the years to come, thereby widening the remit of automated repair.”
BackgroundSelf-citationGiray, G. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.111031 · Cited by 187
Dwarakanath, A., Ahuja, M., Sikand, S., Rao, R. M., Bose, R. P. J. C., Dubash, N., & Podder, S. (2018) · Proceedings of the 27th ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3213846.3213858 · Cited by 183
“] and machine learning algorithms are considered to be in this class. Various methods have been devised to test ‘non-testable programs’. These include constructing an oracle from formal specification [2] (and recently formal verification has been attempted for machine learning [32]), developing a pseudo oracle (or mul…”
BackgroundMethodModeling readability to improve unit tests
Daka, E., Campos, J., Fraser, G., Dorn, J., & Weimer, W. (2015) · Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering · doi:10.1145/2786805.2786838 · Cited by 143
“In order to find faults, automatically generated tests require a test oracle [5]; that is, some mechanism that decides whether the test execution revealed a failure or matched the expected behavior.”
BackgroundLectures on Runtime Verification
(2018) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-75632-5 · Cited by 170
Towards Developing High Performance RISC-V Processors Using Agile Methodology
Xu, Y., Yu, Z., Tang, D., Chen, G., Chen, L., Gou, L., Jin, Y., Li, Q., Li, X., Li, Z., et al. (2022) · IEEE/ACM International Symposium on Microarchitecture (MICRO) · doi:10.1109/micro56248.2022.00080 · Cited by 165
“It is also a widely accepted challenge in formal verification and software testing [28] [29] [30], requiring a large state space to be maintained and explored.”
BackgroundEvaluating and Improving ChatGPT for Unit Test Generation
Yuan, Z., Liu, M., Ding, S., Wang, K., Chen, Y., Peng, X., & Lou, Y. (2024) · Proceedings of the ACM on Software Engineering · doi:10.1145/3660783 · Cited by 163
Automatic software repair: a survey
Gazzola, L., Micucci, D., & Mariani, L. (2018) · Proceedings of the 40th International Conference on Software Engineering · doi:10.1145/3180155.3182526 · Cited by 163
Identifying patch correctness in test-based program repair
Xiong, Y., Liu, X., Zeng, M., Zhang, L., & Huang, G. (2018) · Proceedings of the 40th International Conference on Software Engineering · doi:10.1145/3180155.3180182 · Cited by 162
“However, while test inputs can be generated, test oracles cannot be automatically generated in general, known as the oracle problem [1, 31].”
BackgroundAutomated testing of graphics shader compilers
Donaldson, A. F., Evrard, H., Lascu, A., & Thomson, P. (2017) · Proceedings of the ACM on Programming Languages · doi:10.1145/3133917 · Cited by 160
Generating effective test cases for self-driving cars from police reports
Gambi, A., Huynh, T., & Fraser, G. (2019) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3338906.3338942 · Cited by 161
“…of the various cars during the simulations such that those test executions which result in unavoidable crashes or change their semantics can be invalidated; however, false positive cannot be completely eliminated [6], and failed tests must be manually investigated to identify false positives.”
BackgroundMetamorphic Testing of RESTful Web APIs
Segura, S., Parejo, J. A., Troya, J., & Ruiz–Cortés, A. (2017) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2017.2764464 · Cited by 160
“However, testing Web APIs is challenging mainly due to the difficulty to assess whether the output of an API call is correct, i.e., the oracle problem [6], [7], [8].”
BackgroundReinforcement-Learning-Guided Source Code Summarization Using Hierarchical Attention
Wang, W., Zhang, Y., Sui, Y., Wan, Y., Zhao, Z., Wu, J., Yu, P. S., & Xu, G. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2020.2979701 · Cited by 103
“Even though various techniques have been developed to facilitate programmers during software implementation and testing, documenting code with comments remains a labour-intensive task [21], [22], [23].”
MethodAutomatic generation of oracles for exceptional behaviors
Goffi, A., Gorla, A., Ernst, M. D., & Pezzè, M. (2016) · Proceedings of the 25th International Symposium on Software Testing and Analysis · doi:10.1145/2931037.2931061 · Cited by 111
“[7] wrote surveys on automatic test oracle generation techniques.”
BackgroundMetamorphic Relations for Enhancing System Understanding and Use
Zhou, Z. Q., Sun, L., Chen, T. Y., & Towey, D. (2018) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2018.2876433 · Cited by 148
“[4], for instance, identified four broad categories of oracles: specified oracles (such as assertions and algebraic specifications); derived oracles (such as metamorphic relations in metamorphic testing, and invariants in invariant”
BackgroundDigital-twin-based testing for cyber–physical systems: A systematic literature review
Somers, R. J., Douthwaite, J. A., Wagg, D., Walkinshaw, N., & Hierons, R. M. (2022) · Information and Software Technology · doi:10.1016/j.infsof.2022.107145 · Cited by 150
Generating Avoidable Collision Scenarios for Testing Autonomous Driving Systems
Calò, A., Arcaini, P., Ali, S., Hauer, F., & Ishikawa, F. (2020) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst46399.2020.00045 · Cited by 146
“In other words, the oracle problem [4] is a big challenge.”
BackgroundAn empirical comparison of compiler testing techniques
Chen, J., Hu, W., Hao, D., Xiong, Y., Zhang, H., Zhang, L., & Xie, B. (2016) · Proceedings of the 38th International Conference on Software Engineering · doi:10.1145/2884781.2884878 · Cited by 107
“Like many other software systems, compiler testing suffers from the test-oracle problem [2].”
MethodA Study on Challenges of Testing Robotic Systems
Afzal, A., Goues, C. L., Hilton, M. L., & Timperley, C. S. (2020) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst46399.2020.00020 · Cited by 137
“concerns how to distinguish whether a given system behavior is correct or incorrect [38].”
BackgroundSurfacing Visualization Mirages
McNutt, A. M., Kindlmann, G., & Correll, M. (2020) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3313831.3376420 · Cited by 134
“In the field of software testing distinguishing between correct and incorrect behaviour is known as the “test oracle problem” [7].”
On the diffusion of test smells in automatically generated test code: an empirical study
Palomba, F., Nucci, D. D., Panichella, A., Oliveto, R., & Lucia, A. D. (2016) · IEEE/ACM International Workshop on Search-Based Software Testing (SBST) · doi:10.1145/2897010.2897016 · Cited by 129
“For example, they provide stub assertions that testers need to modify in order to correctly check that the software behaves as intended [5].”
BackgroundFelderer, M., & Ramler, R. (2021) · Lecture notes in business information processing · doi:10.1007/978-3-030-65854-0_3 · Cited by 129
Developer Recommendation for Crowdsourced Software Development Tasks
Mao, K., Yang, Y., Wang, Q., Jia, Y., & Harman, M. (2015) · IEEE International Symposium on Service-Oriented System Engineering (SOSE) · doi:10.1109/sose.2015.46 · Cited by 130
“[28] conducted a study on using the crowd to solve the oracle problem [29] in software testing.”
MethodSelf-citationWhen Software Security Meets Large Language Models: A Survey
Zhu, X., Zhou, W., Han, Q., Ma, W., Wen, S., & Xiang, Y. (2025) · IEEE/CAA Journal of Automatica Sinica · doi:10.1109/jas.2024.124971 · Cited by 128
Reducing Energy Consumption Using Genetic Improvement
Bruce, B. R., Petke, J., & Harman, M. (2015) · Genetic and Evolutionary Computation Conference (GECCO) · doi:10.1145/2739480.2754752 · Cited by 126
“We thereby use the original code as an oracle [3] to guide the GI to functionally correct solutions.”
MethodSelf-citationAutomated patch assessment for program repair at scale
Ye, H., Martínez, M., & Monperrus, M. (2021) · Empirical Software Engineering · doi:10.1007/s10664-020-09920-w · Cited by 114
MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platform
Paltenghi, M., & Pradel, M. (2023) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse48619.2023.00202 · Cited by 111
“(C2) Second, another challenge is the wellknown oracle problem [2], i.”
BackgroundMethodTian, H., Jiang, Y., Wu, G., Yan, J., Wei, J., Chen, W., Li, S., & Ye, D. (2022) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3540250.3549100 · Cited by 107
“For the number of genes in each chromosome, we set the number of genes 𝑙 ∈ [ 4 , 10 ] in each chromosome, as too few genes cannot create diverse and complex situations, while too many genes will waste a large amount of running time.”
BackgroundDetecting flaky tests in probabilistic and machine learning applications
Dutta, S., Shi, A., Choudhary, R., Zhang, Z., Jain, A., & Misailovic, S. (2020) · Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3395363.3397366 · Cited by 78
“The traits of algorithms in various machine learning applications, including inherent randomness, probabilistic specifications, and the lack of solid test oracles [5], pose significant challenges for testing these applications.”
BackgroundAutomated test suite generation for time-continuous simulink models
Matinnejad, R., Nejati, S., Briand, L., & Bruckmann, T. (2016) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/2884781.2884797 · Cited by 106
“Instead of focusing on increasing structural coverage, we propose and evaluate a test data generation approach that aims to maximize diversity in output signals of Simulink models.”
Deploying Search Based Software Engineering with Sapienz at Facebook
Alshahwan, N., Gao, X., Harman, M., Jia, Y., Mao, K., Mols, A., Tei, T., & Zorin, I. (2018) · Lecture notes in computer science · doi:10.1007/978-3-319-99241-9_1 · Cited by 105
“In our work on Sapienz deployment, we opted for a simple and unequivocal implicit oracle [9]; any test which exposes crashing behaviour is a test that is deemed to lead to a failure.”
MethodSelf-citationOracle-Supported Dynamic Exploit Generation for Smart Contracts
Wang, H., Liu, Y., Li, Y., Lin, S., Artho, C. V., Ma, L., & Liu, Y. (2020) · IEEE Transactions on Dependable and Secure Computing · doi:10.1109/tdsc.2020.3037332 · Cited by 101
An initial investigation of ChatGPT unit test generation capability
Guilherme, V., & Vincenzi, A. (2023) · 8th Brazilian Symposium on Systematic and Automated Software Testing · doi:10.1145/3624032.3624035 · Cited by 60
“Consequently, any test case that runs successfully on these programs is deemed correct concerning the program specification, thus sidestepping the oracle problem [5].”
BackgroundTest Generation and Test Prioritization for Simulink Models with Dynamic Behavior
Matinnejad, R., Nejati, S., Briand, L., & Bruckmann, T. (2018) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2018.2811489 · Cited by 98
“Several existing techniques rely on automatable test oracles described as assertions (specified test oracles [12], [60]) or runtime errors (implicit test oracles [12],”
BackgroundMethodMetamorphic Testing for Cybersecurity
Chen, T. Y., Kuo, F., Ma, W., Susilo, W., Towey, D., Voas, J. M., & Zhou, Z. Q. (2016) · Computer · doi:10.1109/mc.2016.176 · Cited by 98
“Software testing, however, has a fundamental challenge: the oracle problem [2].”
BackgroundMutation-Guided LLM-based Test Generation at Meta
Harman, M., Ritchey, J., Harper, I., Sengupta, S., Mao, K., Gulati, A., Foster, C., & Robert, H. (2025) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3696630.3728544 · Cited by 98
Self-citationMETRIC: METamorphic Relation Identification based on the Category-choice framework
Chen, T. Y., Poon, P., & Xie, X. (2015) · Journal of Systems and Software · doi:10.1016/j.jss.2015.07.037 · Cited by 95
Artificial Intelligence in Software Testing : Impact, Problems, Challenges and ProspectPreprint
Khaliq, Z., Farooq, S. U., & Khan, D. A. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2201.05371 · Cited by 95
“This mechanism is known in the testing terminology as the oracle problem [57].”
BackgroundAn empirical investigation on the readability of manual and generated test cases
Grano, G., Scalabrino, S., Gall, H. C., & Oliveto, R. (2018) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1145/3196321.3196363 · Cited by 93
“However, those tests still need human intervention: human effort in reading, understanding and modifying test cases is necessary, especially since the oracles have to be manually specified [2].”
BackgroundMonitoring machine learning models: a categorization of challenges and methods
Schröder, T., & Schulz, M. (2022) · Data Science and Management · doi:10.1016/j.dsm.2022.07.004 · Cited by 98
Test Oracle Strategies for Model-Based Testing
Li, N., & Offutt, J. (2016) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2016.2597136 · Cited by 93
“As pointed out by Barr et al. [5], automated test oracles are often not available.”
BackgroundBig Data Systems: A Software Engineering Perspective
Davoudian, A., & Liu, M. (2021) · ACM Computing Surveys · doi:10.1145/3408314 · Cited by 88
Test oracle assessment and improvement
Jahangirova, G., Clark, D., Harman, M., & Tonella, P. (2016) · International Symposium on Software Testing and Analysis · doi:10.1145/2931037.2931062 · Cited by 88
Self-citationDifference Comparison of SAP, Oracle, and Microsoft Solutions Based on Cloud ERP Systems: A Review
Elbahri, F. M., Al-Sanjary, O. I., Ali, M. A. M., Naif, Z. A., Ibrahim, O. A., & Mohammed, M. N. (2019) · IEEE International Colloquium on Signal Processing & Its Applications (CSPA) · doi:10.1109/cspa.2019.8695976 · Cited by 91
“Oracle software E-Business Collection [55] is a powerful in ERP software with an extensive diversity of features and benefits that have assisted make it more of the most current ERP software system keys on the market nowadays.”
BackgroundInfluentialA Survey of the Selenium Ecosystem
García, B., Gallego, M., Gortázar, F., & Muñoz-Organero, M. (2020) · Electronics · doi:10.3390/electronics9071067 · Cited by 88
“The results reveal how practitioners use Selenium in terms of main features, test development, System Under Test (SUT), test infrastructure, testing frameworks, community, and personal experience.”
ResultInfluentialRESTful API Automated Test Case Generation
Arcuri, A. (2017) · IEEE International Conference on Software Quality, Reliability and Security (QRS) · doi:10.1109/qrs.2017.11 · Cited by 87
“coverage, there is the problem of what to use as an automated oracle [31].”
BackgroundAutomated functional testing of mobile applications: a systematic mapping study
Tramontana, P., Amalfitano, D., Amatucci, N., & Fasolino, A. R. (2018) · Software Quality Journal · doi:10.1007/s11219-018-9418-6 · Cited by 88
“As regards the oracle definition, it is generally considered the most difficult phase of the testing process to be automated (Barr et al. 2015).”
BackgroundMetamorphic testing of RESTful web APIs
Segura, S., Parejo, J. A., Troya, J., & Ruiz–Cortés, A. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3180155.3182528 · Cited by 86
“, the oracle problem [6], [7], [8].”
Differential regression testing for REST APIs
Godefroid, P., Lehmann, D., & Polishchuk, M. (2020) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3395363.3397374 · Cited by 85
“Originally devised by McKeeman [34], differential testing is now a well-known technique for solving the oracle problem [13] in automated testing by comparing two different, but related programs on the same inputs.”
MethodMetamorphic Fuzz Testing of Autonomous Vehicles
Han, J. C., & Zhou, Z. Q. (2020) · doi:10.1145/3387940.3392252 · Cited by 83
How Developers Engineer Test Cases: An Observational Study
Aniche, M. F., Treude, C., & Zaidman, A. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3129889 · Cited by 83
Finding permission bugs in smart contracts with role mining
Liu, Y., Li, Y., Lin, S., & Artho, C. V. (2022) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3533767.3534372 · Cited by 82
“, whether the contract implementation adheres to the expected behaviors, is the “test oracle problem” [14]—there is a lack of policy specifications.”
BackgroundFuzz Testing for Automotive Cyber-Security
Fowler, D. S., Bryans, J. W., Shaikh, S. A., & Wooderson, P. (2018) · International Conference on Dependable Systems and Networks workshops · doi:10.1109/dsn-w.2018.00070 · Cited by 80
“The test oracle problem (how to determine, or not, the correct responses of a system) [14] is a challenge for CPSs, particularly with automating the entire security testing process.”
BackgroundAn exploratory study of autopilot software bugs in unmanned aerial vehicles
Wang, D., Li, S., Xiao, G., Liu, Y., & Sui, Y. (2021) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3468264.3468559 · Cited by 79
“Based on the characteristics of UAV systems and the studied bugs, We identified three challenges for detecting UAV-specific bugs.”
BackgroundFully automated functional fuzzing of Android apps for detecting non-crashing logic bugs
Su, T., Yan, Y., Wang, J., Sun, J., Xiong, Y., Pu, G., Wang, K., & Su, Z. (2021) · Proceedings of the ACM on Programming Languages · doi:10.1145/3485533 · Cited by 60
Automatic test case generation: what if test code quality matters?
Palomba, F., Panichella, A., Zaidman, A., Oliveto, R., & Lucia, A. D. (2016) · International Symposium on Software Testing and Analysis · doi:10.1145/2931037.2931057 · Cited by 79
“Automated tests first need to be maintained when they are generated, since testers need to manually validate each test case to check the assertions (oracle cost) [2, 9].”
BackgroundMenghi, C., Nejati, S., Gaaloul, K., & Briand, L. (2019) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3338906.3338920 · Cited by 77
“h on automated testing of CPS models has largely focused on automated generation of test suites [39, 56, 59]. However, in addition to test input generation, test automation requires automated oracles [26], i.e., a mechanism to automatically determine whether a test has passed or failed. To automate oracles, engineers…”
MethodA systematic review of machine learning methods in software testing
Ajorloo, S., Jamarani, A., Kashfi, M., Kashani, M. H., & Najafizadeh, A. (2024) · Applied Soft Computing · doi:10.1016/j.asoc.2024.111805 · Cited by 77
Evolutionary improvement of assertion oracles
Terragni, V., Jahangirova, G., Tonella, P., & Pezzè, M. (2020) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3368089.3409758 · Cited by 75
Testing Web Enabled Simulation at Scale Using Metamorphic Testing
Ahlgren, J., Berezin, M. E., Bojarczuk, K., Dulskyte, E., Dvortsova, I., George, J., Gucevska, N., Harman, M., Lomelí, M., Meijer, E., et al. (2021) · IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1109/icse-seip52600.2021.00023 · Cited by 75
“This connection between metamorphic testing and regression testing was first observed (although not exploited further) in the technical report version [32] of the subsequently peer-reviewed [9] survey on the Test Oracle Problem.”
BackgroundSelf-citationAn automated approach to estimating code coverage measures via execution logs
Chen, B., Song, J., Xu, P., Hu, X., & Jiang, Z. M. (. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3238214 · Cited by 61
“They have been used widely in both academia and industry to assess and improve the effectiveness of existing test suites [3, 5, 43, 46, 51, 53].”
BackgroundTest Oracle Automation in the Era of LLMs
Molina, F., Gorla, A., & d’Amorim, M. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3715107 · Cited by 73
“Despite all these efforts, the problem of automatically deriving oracles is still an open research problem in software testing [4].”
An Empirical Study of Functional Bugs in Android Apps
Xiong, Y., Xu, M., Su, T., Sun, J., Wang, J., Wen, H., Pu, G., He, J., & Su, Z. (2023) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3597926.3598138 · Cited by 72
“On the other hand, to find app feature related bugs, we have to use the derived oracles or specified oracles [5].”
MethodArtificial Intelligence Applied to Software Testing: A Literature Review
Lima, R., da Cruz, A. M. R., & Ribeiro, J. (2020) · Iberian Conference on Information Systems and Technologies (CISTI) · doi:10.23919/cisti49556.2020.9141124 · Cited by 71
“It seems logic to apply AI into software testing, however the lack of an oracle (the mechanism that distinguishes correct and incorrect behavior of the SUT) is currently a bottleneck [6].”
MethodOverview of Blockchain Oracle Research
Caldarelli, G. (2022) · Future Internet · doi:10.3390/fi14060175 · Cited by 71
STADS: Software Testing as Species Discovery
Böhme, M. (2018) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3210309 · Cited by 70
“eneral, there exists no mechanism that can accurately decide whether or not the program behavior for an input is correct—whether an observed behavior is a bug or a feature of the program. Barr et al. [3] provide an excellent survey of recent advances in tackling the oracle problem. 9.3 Integrating Other Models Into ST…”
BackgroundInfluentialMeMo: Automatically identifying metamorphic relations in Javadoc comments for test automation
Blasi, A., Gorla, A., Ernst, M. D., Pezzè, M., & Carzaniga, A. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.111041 · Cited by 69
“They are cheap to obtain and totally generic, but are far from complete, as they reveal only relatively simple, program-independent properties (Barr et al., 2015).”
BackgroundPredoo: precision testing of deep learning operators
Zhang, X., Sun, N., Fang, C., Liu, J., Liu, J., Chai, D., Jiang, W., & Chen, Z. (2021) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3460319.3464843 · Cited by 68
“There are two kinds of test oracles, implicit and explicit [5].”
BackgroundA Study of Oracle Approximations in Testing Deep Learning Libraries
Nejadgholi, M., & Yang, J. (2019) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00078 · Cited by 68
“Test oracles are defined differently, e.g., a defined oracle, or output from an external library using differential testing [10].”
BackgroundHaq, F. U., Shin, D., Nejati, S., & Briand, L. (2021) · Empirical Software Engineering · doi:10.1007/s10664-021-09982-4 · Cited by 67
Crowd intelligence enhances automated mobile testing
Mao, K., Harman, M., & Jia, Y. (2017) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115614 · Cited by 65
“[32] used crowdsourcing to tackle the oracle problem [9].”
MethodSelf-citationBorg, M., Henriksson, J., Socha, K., Lennartsson, O., Lönegren, E. S., Bui, T., Tomaszewski, P., Sathyamoorthy, S. R., Brink, S., & Moghadam, M. H. (2023) · Software Quality Journal · doi:10.1007/s11219-022-09613-1 · Cited by 65
“Note that introducing random jitter to the test input does not lead to the test oracle problem (Barr et al., 2014), as we can automatically assess whether there is a collision between ego car and the pedestrian without emergency braking in ESI Pro-SiVIC or not (TC-RAND-[1-25]).”
BackgroundAugusto: exploiting popular functionalities for the generation of semantic GUI tests with Oracles
Mariani, L., Pezzè, M., & Zuddas, D. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3180155.3180162 · Cited by 62
“The application produces an erroneous result, in terms of a wrong output message and an incorrect transition to the initial window, while state of the art solutions look for uncaught exceptions and system crashes [6], which is not the case for the OnShop sign up fault.”
Background
Metadata
- Authors
- Barr, E. T., Harman, M., McMinn, P., Shahbaz, M., & Yoo, S.
- Affiliations
- University College London (GB)
- University of Sheffield (GB)
- Venue
- IEEE Transactions on Software Engineering
- Published
- 2015-05-01
- Volume
- 41
- Issue
- 5
- Pages
- 507-525
- ISSN
- 0098-5589 (ISSN-L)
- 1939-3520
- OpenAlex
- W2041713059
- Cited by
- 1,104
- References
- 236
- Citations by year
- 2026: 123 · 2025: 132 · 2024: 116 · 2023: 96 · 2022: 104 · 2021: 114 · 2020: 102 · 2019: 89 · 2018: 98 · 2017: 56 · 2016: 58 · 2015: 16
- FWCI
- 151.12
- Type
- journal article
- Language
- en
- Open access
- hybrid
- doi.org
- Locations
- IEEE Transactions on Software Engineering (publishedVersion, cc-by)
- UCL Discovery (University College London) (submittedVersion)
- Funders
- Engineering and Physical Sciences Research Council (EP/I010165/1, EP/I010386/1)
- Topics
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
- Physical Sciences › Computer Science › Software › Advanced Software Engineering Methodologies
- Keywords
- oracle problem, software testing, metamorphic testing, informal specification, test automation, fault detection
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.