DocumentCode
3204443
Title
Towards Agile Testing of Exceptional Behavior
Author
Di Bernardo, Rafael ; Castor, Fernando ; Soares, Sérgio
Author_Institution
Inf. Center, Fed. Univ. of Pernambuco, Recife, Brazil
fYear
2011
fDate
25-29 April 2011
Firstpage
21
Lastpage
24
Abstract
Many of the problems found in the uses of exception handling are caused by the lack of testing and a priori design of the exceptional behavior. As a consequence, exceptions flow in unforeseen ways during the execution of a software system, causing a negative impact on reliability. This paper presents a new 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. We present a preliminary evaluation of the proposed approach, where it helped us to uncover four bugs in a production system, two of them previously unknown. We have implemented the proposed approach as an extension of the JUnit framework.
Keywords
exception handling; program testing; software prototyping; software reliability; JUnit framework; agile testing; exception handling; exceptional behavior; production system; reliability; software system; Computer bugs; Java; Maintenance engineering; Programming; Runtime; Semantics; Testing;
fLanguage
English
Publisher
ieee
Conference_Titel
Dependable Computing Workshops (LADCW), 2011 Fifth Latin-American Symposium on
Conference_Location
Sao Jose does Campos
Print_ISBN
978-1-4577-0194-8
Electronic_ISBN
978-0-7695-4394-9
Type
conf
DOI
10.1109/LADCW.2011.12
Filename
5773434
Link To Document