Spectrum-Based Incremental Defect Location Method

A technology for software defects and spectrum information, applied in instrumentation, error detection/correction, calculation, etc., can solve problems such as high static information overhead and unrealistic static analysis.

Active Publication Date: 2019-05-03
NANJING UNIV OF POSTS & TELECOMM
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the overhead of obtaining static information is relatively high. For large-scale software, comprehensive static analysis is even unrealistic, and the collection of dynamic information is mainly to run test cases, which will not bring too much overhead to the test.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Spectrum-Based Incremental Defect Location Method
  • Spectrum-Based Incremental Defect Location Method
  • Spectrum-Based Incremental Defect Location Method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0111] The invention will be described in further detail below in conjunction with the accompanying drawings.

[0112] The frequency spectrum-based incremental defect location method of the present invention is a method for defect location by obtaining dynamic information by executing test cases. First select some test cases to execute, collect the program operation results to generate a coverage information table, then perform statistical analysis based on the coverage information table, and calculate the suspicious degree, and then obtain the initial positioning sequence according to the suspicious degree of the program, and gradually add test cases. Correct the positioning sequence in real time to obtain a relatively stable positioning sequence. The implementation steps from the execution of the test case set to the positioning of the defect statement are as follows:

[0113] Step 1: Obtain executable programs to be tested and test case sets, and group test cases;

[0114]...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an incremental defect positioning method based on a frequency spectrum. The method adopts an incremental stepwise iteration method, and finds a program defect statement or predicts a range in which the defect statement possibly exists by employing program information and test information. The method comprises the following steps: firstly, running a test case, collecting coverage information, i.e., frequency spectrum information and operation result information, which is executed by the test case in a program to generate a coverage information table; then, carrying out statistic analysis on the coverage information table, calculating the suspicious degree of the program statement, and sorting the program statement according to the suspicious degree to obtain a defect positioning sequence; and according to the statement arrangement in a positioning sequence, carrying out troubleshooting one by one until the statement which causes program exception is found. According to the method, by adopting an optimizing strategy from multiple angles, the software defect positioning efficiency is improved, the coverage rate of the test case is increased, the cost for frequency spectrum collection is favorably reduced, and the accuracy of a suspicious degree algorithm is improved.

Description

technical field [0001] The invention relates to a spectrum-based incremental defect location method, which belongs to the technical field of software testing. Background technique [0002] Over the years, people have proposed many methods in the study of defect location, mainly using the static information and dynamic information of the program to locate program errors. However, the overhead of obtaining static information is relatively large. For large-scale software, comprehensive static analysis is even unrealistic, while the collection of dynamic information is mainly to run test cases, which will not bring too much overhead to the test. At the same time, since the dynamic information includes the information when the program is running, it can provide more accurate results compared with the method using static information. [0003] Using program spectrum information to locate defects is a more practical and effective software defect location method at present. Program ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3676G06F11/3688
Inventor 王子元张晓红张卫丰周国强张迎周
Owner NANJING UNIV OF POSTS & TELECOMM
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products