An approach to automatic testing exception handling

Exception handling mechanism can increase the reliability of the system and improve the robustness of the software. But the exception handling code that is used to respond to exceptional conditions tends to be the source of the systems failure. It is difficult to test the exception handling by usual methods. This paper proposes an approach to automatic testing of exception handling based on analyzing the problems encountered during testing exception handling. The method of testing exception handling is efficient through combining the structure of exception handling with "assertion violation". It also gives the supporting tool that has been designed for the method.

[1]  Cecília M. F. Rubira,et al.  A comparative study of exception handling mechanisms for building dependable object-oriented software , 2001, J. Syst. Softw..

[2]  Baowen Xu,et al.  An approach to analyzing exception propagation , 2004, IASTED Conf. on Software Engineering and Applications.

[3]  R.A. DeMillo,et al.  An extended overview of the Mothra software testing environment , 1988, [1988] Proceedings. Second Workshop on Software Testing, Verification, and Analysis.

[4]  John B. Goodenough,et al.  Exception handling: issues and a proposed notation , 1975, CACM.

[5]  W.N. Toy,et al.  Fault-tolerant design of local ESS processors , 1978, Proceedings of the IEEE.

[6]  James M. Bieman,et al.  Using fault injection to increase software test coverage , 1996, Proceedings of ISSRE '96: 7th International Symposium on Software Reliability Engineering.

[7]  Robert S. Swarz,et al.  The theory and practice of reliable system design , 1982 .

[8]  Cecília M. F. Rubira,et al.  An exception handling software architecture for developing fault-tolerant software , 2000, Proceedings. Fifth IEEE International Symposium on High Assurance Systems Engineering (HASE 2000).

[9]  Saurabh Sinha,et al.  Analysis and Testing of Programs with Exception Handling Constructs , 2000, IEEE Trans. Software Eng..

[10]  Jiang Shu Exception Handling-An Approach to Improving Software Robustness , 2003 .

[11]  A. Jefferson Offutt,et al.  An Empirical Evaluation of Weak Mutation , 1994, IEEE Trans. Software Eng..

[12]  Guy L. Steele,et al.  The Java Language Specification , 1996 .

[13]  John A. Clark,et al.  Automated test‐data generation for exception conditions , 2000, Softw. Pract. Exp..

[14]  John A. Clark,et al.  Automated test‐data generation for exception conditions , 2000 .

[15]  David B. Stewart,et al.  A study of the applicability of existing exception-handling techniques to component-based real-time software technology , 1998, TOPL.