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

Request the full text

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

  1. Expansion of C/C++ Language Defect Patterns Oriented to Defect Testing System
  2. And the realization of software testing reuse management subsystem design
  3. Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
    XiongLiPing ·Hunan University ·2013 ·Master's thesis
  4. Research on software testing technology based on complex network theory
  5. Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
    FuLiYu ·Shanghai Jiaotong University ·2013 ·Master's thesis
  6. The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
    YaoZuo ·Harbin University of Commerce ·2013 ·Master's thesis
  7. Research of Software Testing Method Based on Cloud Computing
  8. Research on Path-oriented Test Data Generation
    WangShiTao ·Hunan University ·2013 ·Master's thesis
  9. Research on Process Improvement in Y Co. Based on CMM
    FengFei ·China Academy of Railway Sciences ·2013 ·Master's thesis
  10. Method Research and System Development of Software Automatic Testing
    LiangYueYuan ·Chang'an University ·2013 ·Master's thesis
  11. Research and implementation of TaaS test management services
    YangDan ·Northwestern University ·2013 ·Master's thesis
  12. The Design and Implementation of Banking Software Testing Based on Bugfree
  13. Automatic Generation of Test Data Based on Heuristic Search Algorithm
    LiuJia ·Tianjin University ·2012 ·Master's thesis
  14. Research on Combinatorial Testing Technique and Its Application
    ChenXiang ·Nanjing University ·2011 ·Doctoral dissertation
  15. Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
    ZhangYan ·China University of Mining and Technology ·2012 ·Doctoral dissertation
  16. Study and Practice of Independent Software Testing and Validation Based on RTCA DO-178B
  17. A Study to Improve CFL Based on TheDiscovery of Coincidental Correctness Test Cases
    FengLuLu ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  18. Software Reliability Oriented Performance Test Model Research and Application
  19. The Study and Realization of the Android Tablet Stability Automated Test
    ZhouYing ·Central China Normal University ·2014 ·Master's thesis
  20. Research on Testing Technology of Video Codec
    ZhanHaiYan ·Central South University ·2013 ·Master's thesis