DocumentCode
2139564
Title
Agile Testing of Exceptional Behavior
Author
Bernardo, Rafael Di ; Sales, Ricardo, Jr. ; Castor, Fernando ; Coelho, Roberta ; Cacho, Nélio ; Soares, Sérgio
Author_Institution
Inf. Center, Fed. Univ. of Pernambuco, Recife, Brazil
fYear
2011
fDate
28-30 Sept. 2011
Firstpage
204
Lastpage
213
Abstract
The lack of testing and a priori design of the exceptional behavior are causing many of the problems found in the use of exception handling. As a consequence, exceptions flow in unforeseen ways during the execution of a software system, having a negative impact on reliability. This paper presents an agile approach to test the exceptional behavior of a system. It supports developers in checking whether exceptions, at runtime, travel through the expected paths. It is agile because tests are written without the need for extra documentation and are, themselves, considered live documentation. We have evaluated our approach by applying it to different versions of two production quality Java open source applications (i.e., aTunes and JEdit). Using the proposed approach, we could find twelve bugs --- eight of them previously unknown by the open source projects. In addition, from the viewpoint of automated tests as documentation artifacts, the proposed approach pointed out several differences between versions of the two target systems. We have implemented the proposed approach as an extension of the JUnit framework.
Keywords
Java; exception handling; program debugging; program testing; public domain software; software reliability; JUnit framework; Java open source application; agile testing; bugs; exception handling; exceptional behavior; expected path; production quality; reliability; software system; Computer bugs; Documentation; Java; Programming; Runtime; Semantics; Testing; aspect-oriented programming.; exception handling; exceptional behavior; testing;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Engineering (SBES), 2011 25th Brazilian Symposium on
Conference_Location
Sao Paulo
Print_ISBN
978-1-4577-2187-8
Type
conf
DOI
10.1109/SBES.2011.28
Filename
6065164
Link To Document