Static Testing for Bad Behavior of Resource Based on Fault Pattern Detection
- Author
- PeiZhiQiang
- Advisor
- GongYunZhan
- School
- Beijing University of Posts and Telecommunications
- Major
- Computer Science and Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 19
- Citations
- 1
- Software Testing
- Static analysis
- defection pattern
- Interprocedural analysis
- function summary
- Bad behavior
Abstract
With modern society becoming increasingly dependent on software, high confidence software testing is needed in a wide range. The sudden emergence of software testing based on defect pattern detection, as an important guarantee for high assurance software, can greatly reduce the defect density of software and improve its reliability. In this paper, we will use the theory of resource-related static defects based on defection pattern to detect bad behavior of resource.This paper introduces the basic conception of software testing firstly, and then analyzes the theory of software defection pattern and static testing. Using basic theory of static testing, it will do interprocedural analysis with function summary, reduce the limitations to interval arithmetic with constraint solving and perform defect detection with defection pattern state machine based on the framework of DTSJava. Finally, we put emphasis on analyzing bad behavior detection of resource about resource leaked and expired resources recalled and give the corresponding solution to improve DTSJava detection based on DTSJava framework.In this paper, we change the DTSJava resource detection from existing resource detection in order to improve detection accuracy of DTSJava. We verify the detection effectiveness and detection accuracy of bad behavior through more than two hundred typical test cases and ten open-source projects, which indicates that static testing system has more contribution to high confidence software testing.
Table of contents
Summary 4-5
ABSTRACT 5-9
chapter the introduction 9-12
1.1 Background 9-10 < br /> 1.2 research the 1.3 paper structure 10-11
11-12
Chapter II software testing 12-16
2.1 Software Testing concept 12
2.2 software test content 12-13
2.3 software testing classification 13-15
2.3.1 software internal structure and specific the angle 13
2.3.2 from the point of view of the software development process 13-14
2.3.3 From the point of view of program execution 14-15
2.4 software testing principles 15-16
Chapter software defect mode and static test 16-24
3.1 static test 16-20
3.1 .1 static the test overview the 16-17 3.1.2 static test
Category the 3.1.3 static test analysis methods nbsp 17
; 17-18
3.1 .4 common static testing tools 18-20
3.1.5 static test assessment
3.2 software testing based on defect patterns 20-24
3.2.1 Basic Concept 20-22
3.2.2 defect mode causes of defects 22
3.2.3 defect model-based software the test indicator analyze nbsp based on the defect mode test research areas; 22-23
3.2.4 23-24
the fourth chapter DTSJava frame structure 24-42
4.1 abstract syntax tree generator the 24-26
4.2 symbol table generated 26-28
4.3 control flow graph generated 28-30
4.4 function call graph 30-31
the 4.5 du and ud chain generating unit 31-32
4.6 interval arithmetic unit 32-33
4.7 constraint solving 33 < br /> function between 4.8 Analysis 33-37
4.8.1 function Summary 34-35
the 4.8.2 function Summary generate 35-36
the 4.8.3 function summary 36-37
4.9 Failure Mode state machine the 37-42
4.9.1 process flow 37-38 < br /> 4.9.2 defect mode state machine data structure 38-42
Chapter resources the leakage defect detection the 42-51
5.1 common resource leakage failure 42
5.2 Java exception handling the 5.3 alias analysis 42-44
44-45
5.3.1 alias analysis algorithm 44-45 <br / > 5.4 Resource leak detection model the 45-46
5.5 the defect mode detection algorithm 46
the 5.6 resource leaks fault detection 46-47
5.7 Other defects the mode resource leaks 47-49
5.8 Experimental Analysis 49-50
5.9 Chapter Summary expired resources of Chapter 50-51
the recall defect detection 51-57
6.1 the expired resource heavy call the fault state machine design strategy the 51-52
6.1.1 The basic idea 51
6.1.2 expired resource recall defect analysis 51-52
6.2 expired resource re-call state machine model the expired resources 52-54
6.3 recall state machine created nbsp the the 6.4 expired resources; 54
re-call fault detection 54-55
6.5 Experimental Analysis 55-56
6.5.1 expired resource re-invoke the example 55
6.5.2 Analysis of experimental results 55-56
6.6 Chapter Summary 56-57
Chapter VII Summary and Outlook 57-58 < br /> 7.1 work summarizes 57
7.2 further research the
References 57-58 58-60
Appendix: Resource leakage defect mode state machine description 60-63
Acknowledgements 63-64
of degree during the published papers 64-
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
- Research on Summary Based Vulnerability Detection of Binary Code
- An Inter-procedural Static Testing Framework Based on Method Summary for Java
- 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