Extension on the Defect Patterns of Java Language of Defect Testing System
- Author
- MaYue
- Advisor
- GongYunZhan
- School
- Beijing University of Posts and Telecommunications
- Major
- Computer technology
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 54
- Citations
- 0
Abstract
Defect-based testing technology is the test based on the definition of defect patterns. The core of defect-based static analysis is the definition and detection of defect patterns. The more defect patterns the tool can handle, the potential ability of the tool can find defects is stronger.Defect Testing System (DTS) is a static code analysis tool based on defect patterns. DTS contains two different versions——Java and C two categories. Defect patterns in DTS include Fault Patterns, Safe Patterns, Question Patterns and Rule Patterns.Klocwork sofeware is a static analysis software similar with DTS. NIST (U.S. National Institute of Standards and Technology) test case library is a library aims at part of CWE ID. This thesis compares the Java code analysis results between DTSJava6.0 and Klocwork8, and extracts some test cases which relerant to the fault patterns of DTSJava from NIST test case library. According to the omission part of DTS, author summarized the defect patterns which DTSJava imperfectly define. These patterns will be extended in the new version of DTS.Through analysing the DTSJava scan results of thest test cases, author summarized the 11 kinds of defect patterns which DTSJava need to extend. Part of these patterns is what DTSJava has not defined, such as NPD_STAT, RL_PARAM. The other part is what DTSJava need to detail and add, such as NPD_PRE_CHECK.
Table of contents
Summary 4-5
ABSTRACT 5-9
first chapter 9-12
1.1 Background 9-10
1.2 research 10
1.3 content and structure of the paper 10-12
chapter defect mode 12-24
2.1 based on defects software test mode 12-14
2.1.1 Overview of defects based software testing mode 12-13
2.1.2 software testing based on defect pattern analysis indicators 13-14
2.1.3 defect mode state machine 14
2.2 static analysis tools for defect DTSJava 14-17
2.2.1 DTS Overview 14-15
2.2.2 DTSJava defect mode 15-17
2.3 static analysis tools and other common defect mode 17-24
2.3.1 Klocwork 17-19
2.3.2 Coverity 19-21
2.3.3 Fortify SCA 21
2.3.4 PMD 21 - 24
Chapter DTSJava6.0 comparative experiments with Klocwork8 24-52
3.1 Klocwork fault class defect mode 24
3.2 experiments described 24 - 25
3.3 experimental data 25
3.4 null pointer reference to the class instance omitting analysis 25-36
3.4.1 schema definitions related 25-28
3.4.2 member variable 28-30
3.4.3 parent class / interface methods related 30-32
3.4.4 Try-catch structurally related 32-34
3.4.5 Foreach structurally related 34-35
3.4.6 other reasons 35-36
3.5 resource leaks class instance underreporting analysis 36-41
3.5.1 Definition of Defects related 36-37
3.5.2 Summary of library functions related 37-38
3.5.3 member variable 38-39
3.5.4 parent class functions related 39-40
3.5.5 Try-catch structurally related 40-41 <br / > 3.6 summarizes the reasons for underreporting 41-45
3.6.1 defect pattern definition incomplete 42
3.6.2 pre- analysis module inaccurate 42 <br / > 3.6.3 function Summary incomplete and approximate generation 42-44
3.6.4 interval Analysis approximate calculation 44-45
3.6.5 exception handling , recycling , etc. approximation complex control flow 45
3.7 extended defects mode summarize 45-52
3.7.1 statistics determined by the null pointer dereference (NPD_STAT) 45 -46
null pointer 3.7.2 Java.util package function references (NPD_RET_UTIL) 46-48
3.7.3 always reference (NPD_CONST) nbsp null null pointer variables ; 48
3.7.4 may be inferred from the null pointer checks null pointer (NPD_PRE_CHECK) 48-50
3.7.5 ignored the newly created resource (RL_IGNOREDNEW) 50
3.7.6 function parameters resource leaks (RL_PARAM) 50-52
Chapter NIST Java test comparative experiments 52-63
4.1 defects CWE defined 52
4.2 NIST test case library 52
4.3 NIST and DTSJava fault class related defect mode 52-55
4.3.1 CWE193: Off by one Error 52-53
4.3.2 CWE476: NULL Pointer Dereference 53-54
4.3.3 CWE606: Unchecked Loop Condition 54-55
4.4 experimental data 55-56
4.5 omissions case study and mode of expansion 56-63
4.5.1 null pointer reference array elements (NPD_ArrayElement) 56 - null pointer 57
4.5.2 Servlet package function references (NPD_Servlet) 57-58
4.5.3 ReadLine () method results in an infinite loop (DC_ReadLine) 58 - 59
4.5.4 environment variables lead to an infinite loop (DC_Environment) 59-60
4.5.5 database query result in an infinite loop (DC_fromDB) 60-63 <br / > Chapter summary and Outlook 63-65
5.1 summary 63
5.2 Prospects 63-65
References 65-67
Thanks published during 67-68
pursue a degree academic 68
Related dissertations
- Expansion of C/C++ Language Defect Patterns Oriented to Defect Testing System
- 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
- Research and implementation of TaaS test management services
- The Design and Implementation of Banking Software Testing Based on Bugfree
- Automatic Generation of Test Data Based on Heuristic Search Algorithm
- Research on Combinatorial Testing Technique and Its Application
- Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
- Study and Practice of Independent Software Testing and Validation Based on RTCA DO-178B
- A Study to Improve CFL Based on TheDiscovery of Coincidental Correctness Test Cases
- Software Reliability Oriented Performance Test Model Research and Application
- The Study and Realization of the Android Tablet Stability Automated Test
- Research on Testing Technology of Video Codec