Study on the Testing and Visualization of Exceptional Flows in Java Programs
- Author
- GengYaoJun
- Advisor
- WangLi
- School
- Xi'an University of Electronic Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 29
- Citations
- 0
Abstract
Exception handling mechanism is one of the important means to improve software robustness , reliability . It will program the control code and the error-handling code separation , provided the conditions for the programmers to develop highly reliable software . It also introduced a new program control flow and data flow . Because of the particularity of the control flow and data flow , they are difficult is covered in a white-box testing . This makes an error in the exception handling code is difficult to be excluded . In this paper, testing and visualization of abnormal flow in Java programs . Part in the static analysis , the calculation program unhandled exception recursive model , and gives the algorithm of the abnormal flow of information in the this recursive model extraction process . In static analysis part of this paper is also given the abnormal flow visualization program algorithm . Part in the dynamic test , the paper proposes a method for the guidance to implantation of thinking errors , and test the abnormal flow of the program using the Java debugger . Related experiments show that the proposed method is feasible .
Table of contents
Abstract 3-4
Abstract 4-7
first chapter 7-11
1.1 Introduction 7
1.2 research status 7-9
1.3 Problems 9
1.4 of this article and content arrangements 9-11
Chapter II Java exception handling mechanism 11-14
2.1 Java exception classes and their inheritance structure 11
2.2 throws an exception causes 11-12
2.3 Java exception handling model 12
2.4 Java exception handling use 12-13
2.5 Summary 13-14
exception handling code static analysis 14-38
3.1 basic concepts 14
3.2 calculation program unhandled exception model 14-17
3.3 Factored Control Flow Graph Profile 17-19
3.4 Java program conditional ec link extraction 19-29
3.4.1 inheritance graph construction algorithm 19-24
3.4.2 Type Analysis algorithm 24-25
3.4.3 function call information search algorithm 25-26
3.4.4 function definition lookup algorithm 26-27
3.4.5 algorithm to extract conditional ec link 27-29
3.5 abnormal flow the visualization algorithm 29-38
3.5.1 basic block construction algorithm 29-31
the 3.5.2 function within the control flow graph construction algorithm 31-34
the 3.5.3 function control flow graph construction algorithm 34-35
3.5.4 abnormal flow visualization core algorithm 35-38
The
fourth chapter Java exception handling code dynamic test 38-44
4.1 tests the basic idea of ??exception handling code 38-39
4.2 tested using the Java debugger exception handling code 39-44
4.2.1 lead to program status exception 41-42
4.2.2 triggered with the program regardless of the state of exception 42-44
Chapter experimental test 44-47
5.1 Experimental Procedure 44
5.2 test cases 44-47
Conclusion 47-48
Acknowledgements 48-49
the
References 49-51
the
author research reading during 51-52
Appendix A 52-54
Related dissertations
- Research and Application of File Simplification Technology in Static Analysis
- A Static Testing Method for Detecting Null Pointer Fault of Array
- Domain Sensitive Function Side Effects Research and Application
- Research of Equipment Software Static Testing Base on Testbed and Polyspace
- Research on Key Technologies of Improving the Accuracy of Static Defect Detecting
- Research on Software Testing Technology Based on Defect Pattern
- Design and Development of a High-speed Heavy-load Palletizing Robot
- The Design and Analysis of Octahedral Module Deployable Mast
- Research on Mechanical Properties Of the Elastic Body of a Six-Axis Force Sensor Based on Strain Gauge
- Compiler-directed Static Analysis and Code Transformation
- Static Security Detection of C Applications
- And the realization of software testing reuse management subsystem design
- Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
- Research on software testing technology based on complex network theory
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
- Research of Software Testing Method Based on Cloud Computing
- Research on Path-oriented Test Data Generation
- Research on Process Improvement in Y Co. Based on CMM
- Method Research and System Development of Software Automatic Testing