A program error location method and device based on spectrum method

A program error and spectrum technology, applied in the spectrum field, can solve problems such as lack of positioning codes, achieve the effect of enhancing positioning capabilities, increasing positioning capabilities, and facilitating the reproduction of experiments

Active Publication Date: 2021-09-17
INST OF SOFTWARE - CHINESE ACAD OF SCI
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the spectral method can only locate errors in the program, and there is no set of tools for locating missing code errors

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
  • A program error location method and device based on spectrum method
  • A program error location method and device based on spectrum method
  • A program error location method and device based on spectrum method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be further described below through specific embodiments and accompanying drawings.

[0043] Such as figure 1 As shown, the platform of the present invention is based on the Ubuntu 18.04LTS operating system, and performs error location work on Java programs. The platform uses csv files to store intermediate information and final results of error positioning. More specifically, it includes the following modules: code coverage information collection module, program information collection and storage module, information input integration module, calculation module, and result analysis module.

[0044] (1) For the Java project under the Ubuntu environment, use ant and javac to compile to obtain executable java files. Then, use the GZoltar tool to instrument the java bytecode. Then, use JUnit to run each unit test case of the prog...

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 relates to a program error location method and device based on spectrum method. The method includes: collecting code coverage information of the error program to be tested, extracting key quadruples required by the spectrum method from the code coverage information; collecting static information of the error program to be tested; analyzing the collected code coverage information and static information , generate the program spectrum, and insert the code block indicating the missing code position in the program spectrum; according to the key quadruple, use the suspicious degree calculation formula based on the probability model to calculate the suspicious degree of each code block, and judge the suspicious degree according to the structural information of the program According to the degree of suspiciousness, the program spectrum is sorted in descending order to obtain a list of suspicious locations of code missing errors. The invention adds missing code points between code blocks in the program frequency spectrum, and combined with program static information, can locate code missing errors, can use scripts to control the processing flow, and can perform data analysis on batch experiments.

Description

technical field [0001] Based on the spectrum method widely used in the field of error location, the invention realizes the error location of the code missing problem, and belongs to the technology in the field of software testing. Background technique [0002] Software testing is the project of locating and correcting program errors. It is a link that consumes the most manpower and material resources in modern software engineering. In the entire process of software testing, error locating is one of the most difficult steps. In order to improve the efficiency of error localization, researchers have proposed various error localization methods. Among them, the coverage-based spectrum method is one of the most widely used and most efficient methods. Its main idea is to obtain the test results of each test case in the process of software unit testing, combine the coverage information of program entities in each test case, calculate the suspicious value of each program entity acc...

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/3684G06F11/3688G06F11/3692
Inventor 李梓劼张震宇
Owner INST OF SOFTWARE - CHINESE ACAD OF SCI
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