DocumentCode :
3153758
Title :
Criteria for testing exception-handling constructs in Java programs
Author :
Sinha, Saurabh ; Harrold, Mary Jean
Author_Institution :
Dept. of Comput. & Inf. Sci., Ohio State Univ., Columbus, OH, USA
fYear :
1999
fDate :
1999
Firstpage :
265
Lastpage :
274
Abstract :
Exception-handling constructs provide a mechanism for mixing exceptions and a facility for designating protected code by attaching exception handlers to blocks of code. Despite the frequency of their occurrences, the behavior of exception-handling constructs is often the least understood and poorly tested part of a program. The presence of such constructs introduces new structural elements, such as control-flow paths, in a program. To adequately test such programs, these new structural elements must be considered for coverage during structural testing. In this paper, we describe a class of adequacy criteria that can be used to test the behavior of exception-handling constructs. We present a subsumption hierarchy of the criteria, and illustrate the relationship of the criteria to those found in traditional subsumption hierarchies. We describe techniques for generating the testing requirements for the criteria using our control-flow representations. We also describe a methodology for applying the criteria to unit and integration testing of programs that contain exception-handling constructs
Keywords :
Java; exception handling; program testing; Java programs; control-flow paths; exception-handling constructs; structural elements; structural testing; subsumption hierarchy; Frequency; Hip; Identity-based encryption; Information science; Java; Joining processes; Performance evaluation; Protection; Testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Maintenance, 1999. (ICSM '99) Proceedings. IEEE International Conference on
Conference_Location :
Oxford
ISSN :
1063-6773
Print_ISBN :
0-7695-0016-1
Type :
conf
DOI :
10.1109/ICSM.1999.792624
Filename :
792624
Link To Document :
بازگشت