Title
Behavioral Execution Comparison: Are Tests Representative of Field Behavior?
Abstract
Software testing is the most widely used approach for assessing and improving software quality, but it is inherently incomplete and may not be representative of how the software is used in the field. This paper addresses the questions of to what extent tests represent how real users use software, and how to measure behavioral differences between test and field executions. We study four real-world systems, one used by endusers and three used by other (client) software, and compare test suites written by the systems' developers to field executions using four models of behavior: statement coverage, method coverage, mutation score, and a temporal-invariant-based model we developed. We find that developer-written test suites fail to accurately represent field executions: the tests, on average, miss 6.2% of the statements and 7.7% of the methods exercised in the field, the behavior exercised only in the field kills an extra 8.6% of the mutants, finally, the tests miss 52.6% of the behavioral invariants that occur in the field. In addition, augmenting the in-house test suites with automatically-generated tests by a tool targeting high code coverage only marginally improves the tests' behavioral representativeness. These differences between field and test executions—and in particular the finer-grained and more sophisticated ones that we measured using our invariantbased model—can provide insight for developers and suggest a better method for measuring test suite quality.
Year
DOI
Venue
2017
10.1109/ICST.2017.36
2017 IEEE International Conference on Software Testing, Verification and Validation (ICST)
Keywords
Field
DocType
software testing,field data,model inference
Code coverage,Test suite,Smoke testing (software),Data mining,Test Management Approach,Computer science,Regression testing,White-box testing,Test case,Reliability engineering,Test data generation
Conference
ISSN
ISBN
Citations 
2381-2834
978-1-5090-6032-0
10
PageRank 
References 
Authors
0.58
43
3
Name
Order
Citations
PageRank
Qianqian Wang113226.59
Yuriy Brun2221691.89
Alessandro Orso33550172.85