DocumentCode :
2442641
Title :
Amplifying tests to validate exception handling code
Author :
Zhang, Pingyu ; Elbaum, Sebastian
Author_Institution :
Comput. Sci. & Eng. Dept., Univ. of Nebraska - Lincoln, Lincoln, NE, USA
fYear :
2012
fDate :
2-9 June 2012
Firstpage :
595
Lastpage :
605
Abstract :
Validating code handling exceptional behavior is difficult, particularly when dealing with external resources that may be noisy and unreliable, as it requires: 1) the systematic exploration of the space of exceptions that may be thrown by the external resources, and 2) the setup of the context to trigger specific patterns of exceptions. In this work we present an approach that addresses those difficulties by performing an exhaustive amplification of the space of exceptional behavior associated with an external resource that is exercised by a test suite. Each amplification attempts to expose a program exception handling construct to new behavior by mocking an external resource so that it returns normally or throws an exception following a predefined pattern. Our assessment of the approach indicates that it can be fully automated, is powerful enough to detect 65% of the faults reported in the bug reports of this kind, and is precise enough that 77% of the detected anomalies correspond to faults fixed by the developers.
Keywords :
exception handling; program debugging; anomaly detection; bug reports; exception behavior handling code validation; exception space systematic exploration; execution specific patterns; external resource; program exception handling; space exhaustive amplification; test amplification; Aerospace electronics; Androids; Humanoid robots; Instruments; Media; Noise measurement; Space exploration; Test transformation; exception handling;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Engineering (ICSE), 2012 34th International Conference on
Conference_Location :
Zurich
ISSN :
0270-5257
Print_ISBN :
978-1-4673-1066-6
Electronic_ISBN :
0270-5257
Type :
conf
DOI :
10.1109/ICSE.2012.6227157
Filename :
6227157
Link To Document :
بازگشت