Building Test Oracles by Clustering Failures
Authors:
- Rafig AlmaghairbeRARafig Almaghairbe
- Marc RoperMRMarc Roper
- 1 May 2015
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 3-7
Abstract
In recent years, software testing research has produced notable advances in the area of automated test data generation, but the corresponding oracle problem (a mechanism for determine the (in)correctness of an executed test case) is still a major problem. In this paper, we present a preliminary study which investigates the application of anomaly detection techniques (based on clustering) to automatically build an oracle using a system's input/output pairs, based on the hypothesis that failures will tend to group into small clusters. The fault detection capability of the approach is evaluated on two systems and the findings reveal that failing outputs do indeed tend to congregate in small clusters, suggesting that the approach is feasible and has the potential to reduce by an order of magnitude the numbers of outputs that would need to be manually examined following a test run.Keywords
This publication has 17 references indexed in Scilit:
- The Oracle Problem in Software Testing: A SurveyIEEE Transactions on Software Engineering, 2015
- EvoSuite2011
- Automated functional testing of online search servicesSoftware Testing, Verification and Reliability, 2010
- Anomaly detectionACM Computing Surveys, 2009
- The Daikon system for dynamic detection of likely invariantsScience of Computer Programming, 2007
- Randoop2007
- Supporting Controlled Experimentation with Testing Techniques: An Infrastructure and its Potential ImpactEmpirical Software Engineering, 2005
- Using a neural network in the software testing processInternational Journal of Intelligent Systems, 2002
- The ASTOOT approach to testing object-oriented programsACM Transactions on Software Engineering and Methodology, 1994
- An empirical study of the reliability of UNIX utilitiesCommunications of the ACM, 1990